cup1
[aversive.git] / projects / microb2010 / mainboard / uart_config.h
1 /*\r
2  *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)\r
3  *\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
8  *\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
13  *\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
17  *\r
18  *  Revision : $Id: uart_config.h,v 1.5 2009-11-08 17:24:33 zer0 Exp $\r
19  *\r
20  */\r
21 \r
22 /* Droids-corp 2004 - Zer0\r
23  * config for uart module\r
24  */\r
25 \r
26 #ifndef UART_CONFIG_H\r
27 #define UART_CONFIG_H\r
28 \r
29 /*\r
30  * UART2 definitions\r
31  */\r
32 \r
33 /* compile uart2 fonctions, undefine it to pass compilation */\r
34 #define UART2_COMPILE\r
35 \r
36 /* enable uart2 if == 1, disable if == 0 */\r
37 #define UART2_ENABLED  1\r
38 \r
39 /* enable uart2 interrupts if == 1, disable if == 0 */\r
40 #define UART2_INTERRUPT_ENABLED  1\r
41 \r
42 #define UART2_BAUDRATE 57600\r
43 \r
44 /*\r
45  * if you enable this, the maximum baudrate you can reach is\r
46  * higher, but the precision is lower.\r
47  */\r
48 #define UART2_USE_DOUBLE_SPEED 1\r
49 \r
50 #define UART2_RX_FIFO_SIZE 64\r
51 #define UART2_TX_FIFO_SIZE 64\r
52 #define UART2_NBITS 8\r
53 \r
54 #define UART2_PARITY UART_PARTITY_NONE\r
55 \r
56 #define UART2_STOP_BIT UART_STOP_BITS_1\r
57 \r
58 /*\r
59  * UART1 definitions\r
60  */\r
61 \r
62 /* compile uart1 fonctions, undefine it to pass compilation */\r
63 #define UART1_COMPILE\r
64 \r
65 /* enable uart1 if == 1, disable if == 0 */\r
66 #define UART1_ENABLED  1\r
67 \r
68 /* enable uart1 interrupts if == 1, disable if == 0 */\r
69 #define UART1_INTERRUPT_ENABLED  1\r
70 \r
71 #define UART1_BAUDRATE 57600\r
72 \r
73 /*\r
74  * if you enable this, the maximum baudrate you can reach is\r
75  * higher, but the precision is lower.\r
76  */\r
77 #define UART1_USE_DOUBLE_SPEED 1\r
78 \r
79 #define UART1_RX_FIFO_SIZE 64\r
80 #define UART1_TX_FIFO_SIZE 127\r
81 #define UART1_NBITS 8\r
82 \r
83 #define UART1_PARITY UART_PARTITY_NONE\r
84 \r
85 #define UART1_STOP_BIT UART_STOP_BITS_1\r
86 \r
87 /* .... same for uart 1, 2, 3 ... */\r
88 \r
89 #endif\r
90 \r