X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fuart_defs.h;fp=test_src%2Fuart_defs.h;h=dac0a48a92abc1ede420e2d4955a982953f384d2;hb=52ec168ece9d61bd9cb652235dfe8faee6232a11;hp=0000000000000000000000000000000000000000;hpb=7f4bda01ca923c4a9aca6da3370a7c4793426a5c;p=avr-crypto-lib.git diff --git a/test_src/uart_defs.h b/test_src/uart_defs.h new file mode 100644 index 0000000..dac0a48 --- /dev/null +++ b/test_src/uart_defs.h @@ -0,0 +1,34 @@ +/* uart_defs.h */ +/* + This file is part of the AVR-uart_ni. + Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) + + 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 . +*/ + +#ifndef UART_DEFS_H_ +#define UART_DEFS_H_ + +#define UART_PARATY_NONE 0 /** \def UART_PARATY_NONE define no paraty */ +#define UART_PARATY_EVEN 2 /** \def UART_PARATY_EVEN define even paraty */ +#define UART_PARATY_ODD 3 /** \def UART_PARATY_ODD define odd paraty */ +#define UART_STOPBITS_1 0 /** \def UART_STOPBITS_1 define 1 stop bit */ +#define UART_STOPBITS_2 1 /** \def UART_STOPBITS_2 define 2 stop bits */ +#define UART_DATABITS_5 0 /** \def UART_DATABITS_5 define 5 data bits */ +#define UART_DATABITS_6 1 /** \def UART_DATABITS_6 define 6 data bits */ +#define UART_DATABITS_7 2 /** \def UART_DATABITS_7 define 7 data bits */ +#define UART_DATABITS_8 3 /** \def UART_DATABITS_8 define 8 data bits */ +#define UART_DATABITS_9 7 /** \def UART_DATABITS_9 define 9 data bits */ + +#endif /* UART_DEFS_H_ */