2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
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.
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.
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
18 * Revision : $Id: uart_errors.h,v 1.5.6.1 2006-11-26 21:06:02 zer0 Exp $
22 /* Droids-corp 2004 - Zer0
23 * Errors of the uart module
27 * \brief Errors of the UART module.
35 /* check if uart configuration is correct at compilation time */
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
41 #if (UART0_STOP_BIT == 2)
42 #error Currently this module does not support another stop bit if your uC has no USART
46 #error Currently this module does not support 5/6/7 bits frames if your uC has no USART
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
57 #if (UART1_STOP_BIT == 2)
58 #error Currently this module does not support another stop bit if your uC has no USART
62 #error Currently this module does not support 5/6/7 bits frames if your uC has no USART
64 #endif // !UART_USART && UART_DOUBLE