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.3 2009-05-27 20:04:07 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
30 * UART1 definitions
\r
33 /* compile uart1 fonctions, undefine it to pass compilation */
\r
34 #define UART1_COMPILE
\r
36 /* enable uart1 if == 1, disable if == 0 */
\r
37 #define UART1_ENABLED 1
\r
39 /* enable uart1 interrupts if == 1, disable if == 0 */
\r
40 #define UART1_INTERRUPT_ENABLED 1
\r
42 #define UART1_BAUDRATE 57600
\r
45 * if you enable this, the maximum baudrate you can reach is
\r
46 * higher, but the precision is lower.
\r
48 #define UART1_USE_DOUBLE_SPEED 1
\r
50 #define UART1_RX_FIFO_SIZE 64
\r
51 #define UART1_TX_FIFO_SIZE 64
\r
52 #define UART1_NBITS 8
\r
54 #define UART1_PARITY UART_PARTITY_NONE
\r
56 #define UART1_STOP_BIT UART_STOP_BITS_1
\r
60 * UART3 definitions
\r
63 /* compile uart3 fonctions, undefine it to pass compilation */
\r
64 #define UART3_COMPILE
\r
66 /* enable uart3 if == 1, disable if == 0 */
\r
67 #define UART3_ENABLED 1
\r
69 /* enable uart3 interrupts if == 1, disable if == 0 */
\r
70 #define UART3_INTERRUPT_ENABLED 1
\r
72 #define UART3_BAUDRATE 57600
\r
75 * if you enable this, the maximum baudrate you can reach is
\r
76 * higher, but the precision is lower.
\r
78 #define UART3_USE_DOUBLE_SPEED 1
\r
79 //#define UART3_USE_DOUBLE_SPEED 1
\r
81 #define UART3_RX_FIFO_SIZE 64
\r
82 #define UART3_TX_FIFO_SIZE 64
\r
83 //#define UART3_NBITS 5
\r
84 //#define UART3_NBITS 6
\r
85 //#define UART3_NBITS 7
\r
86 #define UART3_NBITS 8
\r
87 //#define UART3_NBITS 9
\r
89 #define UART3_PARITY UART_PARTITY_NONE
\r
90 //#define UART3_PARITY UART_PARTITY_ODD
\r
91 //#define UART3_PARITY UART_PARTITY_EVEN
\r
93 #define UART3_STOP_BIT UART_STOP_BITS_1
\r
94 //#define UART3_STOP_BIT UART_STOP_BITS_2
\r
99 /* .... same for uart 1, 2, 3 ... */
\r