callout: add a new module which is an alternative to the scheduler
[aversive.git] / modules / base / callout / test / uart_config.h
1 /*  
2  *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)
3  * 
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
18  *  Revision : $Id: uart_config.h,v 1.3.10.1 2006-11-26 21:06:02 zer0 Exp $
19  *
20  */
21
22 /* Droids-corp 2004 - Zer0
23  * config for uart module
24  */
25
26 #ifndef UART_CONFIG_H
27 #define UART_CONFIG_H
28
29 /*
30  * UART0 definitions 
31  */
32
33 /* compile uart0 fonctions, undefine it to pass compilation */
34 #define UART0_COMPILE  
35
36 /* enable uart0 if == 1, disable if == 0 */
37 #define UART0_ENABLED  1
38
39 /* enable uart0 interrupts if == 1, disable if == 0 */
40 #define UART0_INTERRUPT_ENABLED  1
41
42 #define UART0_BAUDRATE 38400
43
44 /* 
45  * if you enable this, the maximum baudrate you can reach is 
46  * higher, but the precision is lower. 
47  */
48 #define UART0_USE_DOUBLE_SPEED 0
49 //#define UART0_USE_DOUBLE_SPEED 1
50
51 #define UART0_RX_FIFO_SIZE 4
52 #define UART0_TX_FIFO_SIZE 4
53 //#define UART0_NBITS 5
54 //#define UART0_NBITS 6
55 //#define UART0_NBITS 7
56 #define UART0_NBITS 8
57 //#define UART0_NBITS 9
58
59 #define UART0_PARITY UART_PARTITY_NONE
60 //#define UART0_PARITY UART_PARTITY_ODD
61 //#define UART0_PARITY UART_PARTITY_EVEN
62
63 #define UART0_STOP_BIT UART_STOP_BITS_1
64 //#define UART0_STOP_BIT UART_STOP_BITS_2
65
66
67
68
69 /* .... same for uart 1, 2, 3 ... */
70
71 #endif
72