avr-crypto-lib/test_src/uart_defs.h

46 lines
1.6 KiB
C
Raw Normal View History

2009-07-29 09:49:57 +00:00
/* uart_defs.h */
/*
2011-09-02 18:42:52 +00:00
This file is part of the AVR-uart_i.
2015-02-06 02:43:31 +00:00
Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
2009-07-29 09:49:57 +00:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2011-09-02 18:42:52 +00:00
/**
* \file uart_defs.h
2015-02-06 02:43:31 +00:00
* \email bg@nerilex.org
2011-09-02 18:42:52 +00:00
* \author Daniel Otte
* \date 2009-07-24
* \license GPLv3 or later
* \addtogroup uart_config
* \brief definitions for uart configuration
* \details
* This file declares some macros for use in uart configuration
*/
/*@{*/
2009-07-29 09:49:57 +00:00
#ifndef UART_DEFS_H_
#define UART_DEFS_H_
2011-09-02 18:42:52 +00:00
#define UART_PARATY_NONE 0 /**< define no paraty */
#define UART_PARATY_EVEN 2 /**< define even paraty */
#define UART_PARATY_ODD 3 /**< define odd paraty */
#define UART_STOPBITS_1 0 /**< define 1 stop bit */
#define UART_STOPBITS_2 1 /**< define 2 stop bits */
#define UART_DATABITS_5 0 /**< define 5 data bits */
#define UART_DATABITS_6 1 /**< define 6 data bits */
#define UART_DATABITS_7 2 /**< define 7 data bits */
#define UART_DATABITS_8 3 /**< define 8 data bits */
#define UART_DATABITS_9 7 /**< define 9 data bits */
/*@}*/
2009-07-29 09:49:57 +00:00
#endif /* UART_DEFS_H_ */