X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=uart_config.h;h=3785e574a42bf354e5272662b7017e3a39d2b163;hp=e693fc1035cf86617f97103b5b33a0bbf9925bc3;hb=f74db5fd03bcd38af3ca533e7531dd70454dfaaf;hpb=945a4a71eba40928a4049883102dc8d6200a05c2 diff --git a/uart_config.h b/uart_config.h index e693fc1..3785e57 100644 --- a/uart_config.h +++ b/uart_config.h @@ -58,33 +58,33 @@ /* .... same for uart 1, 2, 3 ... */ /* - * UART2 definitions + * UART1 definitions */ -/* compile uart2 fonctions, undefine it to pass compilation */ -#define UART2_COMPILE +/* compile uart1 fonctions, undefine it to pass compilation */ +#define UART1_COMPILE -/* enable uart2 if == 1, disable if == 0 */ -#define UART2_ENABLED 1 +/* enable uart1 if == 1, disable if == 0 */ +#define UART1_ENABLED 1 -/* enable uart2 interrupts if == 1, disable if == 0 */ -#define UART2_INTERRUPT_ENABLED 1 +/* enable uart1 interrupts if == 1, disable if == 0 */ +#define UART1_INTERRUPT_ENABLED 1 -#define UART2_BAUDRATE 57600 +#define UART1_BAUDRATE 57600 /* * if you enable this, the maximum baudrate you can reach is * higher, but the precision is lower. */ -#define UART2_USE_DOUBLE_SPEED 1 +#define UART1_USE_DOUBLE_SPEED 1 -#define UART2_RX_FIFO_SIZE 64 -#define UART2_TX_FIFO_SIZE 127 -#define UART2_NBITS 8 +#define UART1_RX_FIFO_SIZE 64 +#define UART1_TX_FIFO_SIZE 127 +#define UART1_NBITS 8 -#define UART2_PARITY UART_PARTITY_NONE +#define UART1_PARITY UART_PARTITY_NONE -#define UART2_STOP_BIT UART_STOP_BITS_1 +#define UART1_STOP_BIT UART_STOP_BITS_1 /* .... same for uart 1, 2, 3 ... */