X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=uart_config.h;h=f8b2f093161167cc88d360da0cb1ee59468f783b;hp=8795a7efedadcbec40c9a5ef6d491a403fe6ab8a;hb=0e1c93804369af27043c82ccc778c42bf54a9bd4;hpb=1a0d8b2d8fb17cf4b2c845c52b22dc932efa080b diff --git a/uart_config.h b/uart_config.h index 8795a7e..f8b2f09 100644 --- a/uart_config.h +++ b/uart_config.h @@ -27,33 +27,64 @@ #define UART_CONFIG_H /* - * UART1 definitions + * UART0 definitions */ -/* compile uart1 fonctions, undefine it to pass compilation */ -#define UART1_COMPILE +/* compile uart0 fonctions, undefine it to pass compilation */ +#define UART0_COMPILE -/* enable uart1 if == 1, disable if == 0 */ -#define UART1_ENABLED 1 +/* enable uart0 if == 1, disable if == 0 */ +#define UART0_ENABLED 1 -/* enable uart1 interrupts if == 1, disable if == 0 */ -#define UART1_INTERRUPT_ENABLED 1 +/* enable uart0 interrupts if == 1, disable if == 0 */ +#define UART0_INTERRUPT_ENABLED 1 -#define UART1_BAUDRATE 57600 +#define UART0_BAUDRATE 57600 /* * if you enable this, the maximum baudrate you can reach is * higher, but the precision is lower. */ -#define UART1_USE_DOUBLE_SPEED 1 +#define UART0_USE_DOUBLE_SPEED 1 -#define UART1_RX_FIFO_SIZE 64 -#define UART1_TX_FIFO_SIZE 127 -#define UART1_NBITS 8 +#define UART0_RX_FIFO_SIZE 64 +#define UART0_TX_FIFO_SIZE 127 +#define UART0_NBITS 8 -#define UART1_PARITY UART_PARTITY_NONE +#define UART0_PARITY UART_PARTITY_NONE -#define UART1_STOP_BIT UART_STOP_BITS_1 +#define UART0_STOP_BIT UART_STOP_BITS_1 + +/* .... same for uart 1, 2, 3 ... */ + +/* + * UART2 definitions + */ + +/* compile uart2 fonctions, undefine it to pass compilation */ +#define UART2_COMPILE + +/* enable uart2 if == 1, disable if == 0 */ +#define UART2_ENABLED 1 + +/* enable uart2 interrupts if == 1, disable if == 0 */ +#define UART2_INTERRUPT_ENABLED 1 + +#define UART2_BAUDRATE 9600 + +/* + * if you enable this, the maximum baudrate you can reach is + * higher, but the precision is lower. + */ +#define UART2_USE_DOUBLE_SPEED 1 + +#define UART2_RX_FIFO_SIZE 64 +#define UART2_TX_FIFO_SIZE 127 +#define UART2_NBITS 8 + +#define UART2_PARITY UART_PARTITY_NONE + +#define UART2_STOP_BIT UART_STOP_BITS_1 /* .... same for uart 1, 2, 3 ... */