Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

ARM-specific Functions

10.15.11 uart_stats()

This function prints a diagnostic message about current UART status.

Syntax

int uart_stats(int unit)

where:

unit

is the UART unit number.

Return value

Returns one of the following:

0

if successful.

1

if not successful (invalid unit number).

Usage

This function is used for debugging purposes. It calls dprintf() to report statistics about the numbers of characters transmitted and received, and the numbers of interrupts processed.

10-30

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B