X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=uart_config.h;h=3785e574a42bf354e5272662b7017e3a39d2b163;hp=8795a7efedadcbec40c9a5ef6d491a403fe6ab8a;hb=f74db5fd03bcd38af3ca533e7531dd70454dfaaf;hpb=d6014994e06ebe952d51bef2e36a795f624c4b4d diff --git a/uart_config.h b/uart_config.h index 8795a7e..3785e57 100644 --- a/uart_config.h +++ b/uart_config.h @@ -26,6 +26,37 @@ #ifndef UART_CONFIG_H #define UART_CONFIG_H +/* + * UART0 definitions + */ + +/* compile uart0 fonctions, undefine it to pass compilation */ +#define UART0_COMPILE + +/* enable uart0 if == 1, disable if == 0 */ +#define UART0_ENABLED 1 + +/* enable uart0 interrupts if == 1, disable if == 0 */ +#define UART0_INTERRUPT_ENABLED 1 + +#define UART0_BAUDRATE 57600 + +/* + * if you enable this, the maximum baudrate you can reach is + * higher, but the precision is lower. + */ +#define UART0_USE_DOUBLE_SPEED 1 + +#define UART0_RX_FIFO_SIZE 64 +#define UART0_TX_FIFO_SIZE 127 +#define UART0_NBITS 8 + +#define UART0_PARITY UART_PARTITY_NONE + +#define UART0_STOP_BIT UART_STOP_BITS_1 + +/* .... same for uart 1, 2, 3 ... */ + /* * UART1 definitions */