Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
uart_arch.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Copyright (C) 2009 Antoine Drouin <poinix@gmail.com>
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
24 #ifndef UART_ARCH_H
25 #define UART_ARCH_H
26 
27 #include "std.h"
28 //coment to avoid redefinition
29 /*#define B9600 9600
30 #define B38400 38400
31  #define B57600 57600
32 #define B115200 115200
33 */
34 
35 //junk for gps_configure_uart in gps_ubx.c to compile
36 #define UART_BAUD(baud) (baud)
37 
38 
39 #define Uart1_init uart1_init()
40 #define Uart2_init uart2_init()
41 #define Uart3_init uart3_init()
42 #define Uart5_init uart5_init()
43 
44 #define UART1_irq_handler usart1_irq_handler
45 #define UART2_irq_handler usart2_irq_handler
46 #define UART3_irq_handler usart3_irq_handler
47 #define UART5_irq_handler usart5_irq_handler
48 
49 #if defined USE_UART0 || OVERRIDE_UART0_IRQ_HANDLER
50 extern void uart0_handler(void);
51 #endif
52 
53 #ifdef USE_UART0
54 
55 void uart0_init( void );
56 
57 #endif /* USE_UART0 */
58 
59 
60 #if defined USE_UART1 || OVERRIDE_UART1_IRQ_HANDLER
61 extern void uart1_handler(void);
62 #endif
63 
64 #ifdef USE_UART1
65 
66 void uart1_init( void );
67 
68 #endif /* USE_UART1 */
69 
70 #endif /* UART_ARCH_H */