2006-05-19 21:00:23 +02:00
|
|
|
#ifndef UART_H
|
|
|
|
#define UART_H
|
|
|
|
|
|
|
|
#define UART_BAUD_SELECT(baudRate,xtalCpu) (((xtalCpu)+(baudRate*8))/((baudRate)*16)-1)
|
|
|
|
|
|
|
|
#define UARTDOUBLE 1
|
|
|
|
#define UARTSINGLE 0
|
|
|
|
|
|
|
|
void USART_Init(unsigned int, unsigned char);
|
|
|
|
void sendchar(char);
|
|
|
|
char recchar(void);
|
|
|
|
|
|
|
|
#endif
|