USART routines. More...
Defines | |
#define | BAUD300 0 |
#define | BAUD1200 1 |
#define | BAUD2400 2 |
#define | BAUD9600 3 |
#define | BAUD19200 4 |
#define | BAUD57600 5 |
#define | BAUD115200 6 |
Functions | |
void | initUsart () |
Usart initialisation function, baudrate = 9600. | |
void | initUsartAdj (char baudrate) |
Usart initialisation function. | |
void | printStringToUSART (const FAR_ROM char *message) |
Write a ROM string to a the USART. | |
void | putByteToUSART (BYTE data) |
Write one byte to the USART. |
USART routines.
Abstraction of USART initialisation function
void initUsartAdj | ( | char | baudrate | ) |
Usart initialisation function.
Initialisation of the UART for an asynchronous serial connection with adjustable baud rate.
baudrate | The requated baud rate. May be ony of: BAUD300, BAUD1200, BAUD2400, BAUD9600, BAUD19200, BAUD57600, BAUD115200. |
void printStringToUSART | ( | const FAR_ROM char * | message | ) |
Write a ROM string to a the USART.
The string is written to the USART.
message | the NULL-terminated ASCII string to write |
void putByteToUSART | ( | BYTE | data | ) |
Write one byte to the USART.
The data was written to the USART.
data | the byte to send |