]> git.cryptolib.org Git - arm-crypto-lib.git/blob - test_src/uart_defines.h
switching to dedicated endian switching function
[arm-crypto-lib.git] / test_src / uart_defines.h
1 /* uart_defines.h */
2 /*
3     This file is part of the ARM-Crypto-Lib.
4     Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
5
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.
10
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.
15
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/>.
18 */
19
20 #ifndef UART_DEFINES_H_
21 #define UART_DEFINES_H_
22
23 #define UART_0 0
24 #define UART_1 1
25 #define UART_2 2
26 #define UART_MAX 2
27
28 #define UART_DATABITS_5 0
29 #define UART_DATABITS_6 1
30 #define UART_DATABITS_7 2
31 #define UART_DATABITS_8 3
32
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
38
39 #define UART_STOPBITS_ONE 0
40 #define UART_STOPBITS_TWO 1
41
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
49
50 #endif /* UART_DEFINES_H_ */