X-Git-Url: http://git.droids-corp.org/?p=protos%2Fimu.git;a=blobdiff_plain;f=uart_config.h;fp=uart_config.h;h=3785e574a42bf354e5272662b7017e3a39d2b163;hp=4822653a2abf21eb413397a7937eced172c54543;hb=e19240438eba7e87f6f3ad0c6c8f387d92ab4000;hpb=9c35c09227041d2d23477b19443b3f707fddc664 diff --git a/uart_config.h b/uart_config.h index 4822653..3785e57 100644 --- a/uart_config.h +++ b/uart_config.h @@ -15,7 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Revision : $Id: uart_config.h,v 1.2.8.1 2006-11-26 21:06:06 zer0 Exp $ + * Revision : $Id: uart_config.h,v 1.5 2009-11-08 17:24:33 zer0 Exp $ * */ @@ -40,32 +40,51 @@ #define UART0_INTERRUPT_ENABLED 1 #define UART0_BAUDRATE 57600 -//#define UART0_BAUDRATE 115200 /* * if you enable this, the maximum baudrate you can reach is * higher, but the precision is lower. */ -//#define UART0_USE_DOUBLE_SPEED 0 #define UART0_USE_DOUBLE_SPEED 1 -#define UART0_RX_FIFO_SIZE 4 -#define UART0_TX_FIFO_SIZE 4 -//#define UART0_NBITS 5 -//#define UART0_NBITS 6 -//#define UART0_NBITS 7 +#define UART0_RX_FIFO_SIZE 64 +#define UART0_TX_FIFO_SIZE 127 #define UART0_NBITS 8 -//#define UART0_NBITS 9 #define UART0_PARITY UART_PARTITY_NONE -//#define UART0_PARITY UART_PARTITY_ODD -//#define UART0_PARITY UART_PARTITY_EVEN #define UART0_STOP_BIT UART_STOP_BITS_1 -//#define UART0_STOP_BIT UART_STOP_BITS_2 +/* .... same for uart 1, 2, 3 ... */ + +/* + * UART1 definitions + */ + +/* compile uart1 fonctions, undefine it to pass compilation */ +#define UART1_COMPILE + +/* enable uart1 if == 1, disable if == 0 */ +#define UART1_ENABLED 1 + +/* enable uart1 interrupts if == 1, disable if == 0 */ +#define UART1_INTERRUPT_ENABLED 1 + +#define UART1_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 UART1_RX_FIFO_SIZE 64 +#define UART1_TX_FIFO_SIZE 127 +#define UART1_NBITS 8 +#define UART1_PARITY UART_PARTITY_NONE +#define UART1_STOP_BIT UART_STOP_BITS_1 /* .... same for uart 1, 2, 3 ... */