LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
suart_err.h
Go to the documentation of this file.
1 /*
2  * linux/<file location within the kernel tree>
3  *
4  * Copyright (C) 2010 Texas Instruments Incorporated
5  * Author: Ganeshan N
6  *
7  * Based on <Give reference of old kernel file from which this file is derived from>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation version 2.
12  *
13  * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
14  * whether express or implied; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * General Public License for more details.
17  */
18 
19 #ifndef _SUART_ERR_H_
20 #define _SUART_ERR_H_
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define PRU_SUART_SUCCESS (0u)
27 
28 #define PRU_SUART_FAILURE (-1)
29 
31 #define PRU_SUART_ERR_DEVICE_NOT_OPEN (1u)
32 
33 #define PRU_SUART_ERR_UARTS_INIT_FAIL (2u)
34 
35 #define PRU_SUART_ERR_UARTS_RESET_FAIL (3u)
36 
37 #define PRU_SUART_ERR_HANDLE_INVALID (4u)
38 
39 #define PRU_SUART_ERR_PARAMETER_INVALID (5u)
40 
42 /* Transmit */
43 #define PRU_SUART_ERR_TX (6u)
44 
45 #define PRU_SUART_TX_COMPLETE (7u)
46 
47 #define PRU_SUART_TX_BUSY (8u)
48 
49 #define PRU_SUART_TX_UNDERRUN (9u)
50 
52 /* Receive */
53 #define PRU_SUART_ERR_RX (10u)
54 
55 #define PRU_SUART_RX_COMPLETE (11u)
56 
57 #define PRU_SUART_RX_BUSY (12u)
58 
59 #define PRU_SUART_RX_OVERRUN (13u)
60 
62 /* API Specific Errors */
63 #define SUART_INVALID_TX_BAUD (14u)
64 #define SUART_INVALID_OVERSAMPLING (15u)
65 #define SUART_INVALID_RX_BAUD (16u)
66 
67 #define SUART_UART_IN_USE (17u)
68 
69 #define SUART_INVALID_CLKDIVISOR (18u)
70 #define SUART_INVALID_UART_NUM (19u)
71 #define SUART_INVALID_SR_NUM (20u)
72 
73 #ifdef __cplusplus
74 } /* End of extern C */
75 #endif /* #ifdef __cplusplus */
76 #endif