2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
\r
4 * This program is free software; you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation; either version 2 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License
\r
15 * along with this program; if not, write to the Free Software
\r
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
18 * Revision : $Id: uart_config.h,v 1.1 2009-01-30 20:42:17 zer0 Exp $
\r
22 /* Droids-corp 2004 - Zer0
\r
23 * config for uart module
\r
26 #ifndef UART_CONFIG_H
\r
27 #define UART_CONFIG_H
\r
29 /* compile uart0 fonctions, undefine it to pass compilation */
\r
30 #define UART0_COMPILE
\r
32 /* enable uart0 if == 1, disable if == 0 */
\r
33 #define UART0_ENABLED 1
\r
35 /* enable uart0 interrupts if == 1, disable if == 0 */
\r
36 #define UART0_INTERRUPT_ENABLED 1
\r
38 #define UART0_BAUDRATE 57600
\r
41 * if you enable this, the maximum baudrate you can reach is
\r
42 * higher, but the precision is lower.
\r
44 #define UART0_USE_DOUBLE_SPEED 0
\r
45 //#define UART0_USE_DOUBLE_SPEED 1
\r
47 #define UART0_RX_FIFO_SIZE 64
\r
48 #define UART0_TX_FIFO_SIZE 16
\r
49 //#define UART0_NBITS 5
\r
50 //#define UART0_NBITS 6
\r
51 //#define UART0_NBITS 7
\r
52 #define UART0_NBITS 8
\r
53 //#define UART0_NBITS 9
\r
55 #define UART0_PARITY UART_PARTITY_NONE
\r
56 //#define UART0_PARITY UART_PARTITY_ODD
\r
57 //#define UART0_PARITY UART_PARTITY_EVEN
\r
59 #define UART0_STOP_BIT UART_STOP_BITS_1
\r
60 //#define UART0_STOP_BIT UART_STOP_BITS_2
\r
64 * UART1 definitions
\r
67 /* compile uart1 fonctions, undefine it to pass compilation */
\r
68 #define UART1_COMPILE
\r
70 /* enable uart1 if == 1, disable if == 0 */
\r
71 #define UART1_ENABLED 1
\r
73 /* enable uart1 interrupts if == 1, disable if == 0 */
\r
74 #define UART1_INTERRUPT_ENABLED 1
\r
76 #define UART1_BAUDRATE 115200
\r
77 //#define UART1_BAUDRATE 1000000
\r
81 * if you enable this, the maximum baudrate you can reach is
\r
82 * higher, but the precision is lower.
\r
84 //#define UART1_USE_DOUBLE_SPEED 0
\r
85 #define UART1_USE_DOUBLE_SPEED 1
\r
87 #define UART1_RX_FIFO_SIZE 32
\r
88 #define UART1_TX_FIFO_SIZE 32
\r
89 //#define UART1_NBITS 5
\r
90 //#define UART1_NBITS 6
\r
91 //#define UART1_NBITS 7
\r
92 #define UART1_NBITS 8
\r
93 //#define UART1_NBITS 9
\r
95 #define UART1_PARITY UART_PARTITY_NONE
\r
96 //#define UART1_PARITY UART_PARTITY_ODD
\r
97 //#define UART1_PARITY UART_PARTITY_EVEN
\r
99 //#define UART1_STOP_BIT UART_STOP_BITS_1
\r
100 #define UART1_STOP_BIT UART_STOP_BITS_2
\r