hdo
beta
|
Zobrazit zdrojový text tohoto souboru.
Definice maker | |
#define | DBGU_STANDARD AT91C_US_PAR_NONE |
Standard operating mode (asynchronous, 8bit, no parity, 1 stop bit) | |
Funkce | |
void | DBGU_Configure (unsigned int mode, unsigned int baudrate, unsigned int mck) |
unsigned char | DBGU_GetChar (void) |
void | DBGU_PutChar (unsigned char c) |
unsigned int | DBGU_IsRxReady (void) |
Return 1 if a character can be read in DBGU. |
Purpose
This module provides definitions and functions for using the Debug Unit (DBGU).
It also overloads the fputc(), fputs() & putchar() functions so the printf() method outputs its data on the DBGU. This behavior can be suppressed by defining NOFPUT during compilation.
Usage
Definice v souboru dbgu.h.
void DBGU_Configure | ( | unsigned int | mode, |
unsigned int | baudrate, | ||
unsigned int | mck | ||
) |
Initializes the DBGU with the given parameters, and enables both the transmitter and the receiver. The mode parameter contains the value of the DBGU_MR register. Value DBGU_STANDARD can be used for mode to get the most common configuration (i.e. aysnchronous, 8bits, no parity, 1 stop bit, no flow control).
mode | Operating mode to configure. |
baudrate | Desired baudrate (e.g. 115200). |
mck | Frequency of the system master clock in Hz. |
unsigned char DBGU_GetChar | ( | void | ) |
void DBGU_PutChar | ( | unsigned char | c | ) |