at query is not NULL when receiving xmit status
[protos/xbee-avr.git] / uart_errors.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_errors.h,v 1.5.6.1 2006-11-26 21:06:02 zer0 Exp $
19  *
20  */
21
22 /* Droids-corp 2004 - Zer0
23  * Errors of the uart module
24  */
25
26 /** \file uart.c
27  *  \brief Errors of the UART module.
28  *
29  *  \todo None
30  *
31  *  \test None
32  */
33
34
35 /* check if uart configuration is correct at compilation time */
36 #ifndef UART_IS_USART
37 #if (UART0_PARITY == UART_PARTITY_ODD) || (UART0_PARITY == UART_PARTITY_EVEN)
38 #error Currently this module does not support parity if your uC has no USART
39 #endif
40
41 #if (UART0_STOP_BIT == 2)
42 #error Currently this module does not support another stop bit if your uC has no USART
43 #endif
44
45 #if (UART0_NBITS < 8)
46 #error Currently this module does not support 5/6/7 bits frames if your uC has no USART
47 #endif  
48 #endif // !UART_USART
49
50
51 /* check if uart configuration is correct */
52 #if !defined(UART_USART) && defined(UART_DOUBLE) // is this possible ??
53 #if (UART1_PARITY == UART_PARTITY_ODD) || (UART1_PARITY == UART_PARTITY_EVEN)
54 #error Currently this module does not support parity if your uC has no USART
55 #endif
56
57 #if (UART1_STOP_BIT == 2)
58 #error Currently this module does not support another stop bit if your uC has no USART
59 #endif
60
61 #if (UART1_NBITS < 8)
62 #error Currently this module does not support 5/6/7 bits frames if your uC has no USART
63 #endif  
64 #endif // !UART_USART && UART_DOUBLE 
65
66
67