3 This file is part of the ARM-Crypto-Lib.
4 Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef UART_DEFINES_H_
21 #define UART_DEFINES_H_
28 #define UART_DATABITS_5 0
29 #define UART_DATABITS_6 1
30 #define UART_DATABITS_7 2
31 #define UART_DATABITS_8 3
33 #define UART_PARATY_NONE 0
34 #define UART_PARATY_EVEN 1
35 #define UART_PARATY_ODD 2
36 #define UART_PARATY_MARK 3
37 #define UART_PARATY_SPACE 4
39 #define UART_STOPBITS_ONE 0
40 #define UART_STOPBITS_TWO 1
42 #define UART_ERROR_OK 0
43 #define UART_ERROR_WRONG_UART 1
44 #define UART_ERROR_WRONG_DATABITS 2
45 #define UART_ERROR_WRONG_PARATY 3
46 #define UART_ERROR_WRONG_STOPBITS 4
47 #define UART_ERROR_RX_BUFFER_INIT 5
48 #define UART_ERROR_TX_BUFFER_INIT 6
50 #define UART_FLOWCTRL_NONE 0
51 #define UART_FLOWCTRL_SOFT 1
53 #define UART_XON_CHAR 0x11
54 #define UART_XOFF_CHAR 0x13
56 #endif /* UART_DEFINES_H_ */