Revision 916f8d28 core/inc/aos_types.h
core/inc/aos_types.h | ||
---|---|---|
46 | 46 |
/******************************************************************************/ |
47 | 47 |
|
48 | 48 |
/** |
49 |
* @brief Error codes used in AMiRo-OS.
|
|
49 |
* @brief Error and status type generally used in AMiRo-OS.
|
|
50 | 50 |
*/ |
51 |
typedef enum { |
|
52 |
AOS_OK = 0, /**< No error, success. */ |
|
53 |
AOS_SUCCESS = 0, /**< No error, success */ |
|
54 |
AOS_WARNING = 1, /**< No error, but a warning occurred */ |
|
55 |
AOS_INVALID_ARGUMENTS = 2, /**< No error, but given arguments are invalid */ |
|
56 |
AOS_ERROR = 0x80, /**< An error occurred */ |
|
57 |
AOS_FAILURE = 0x80, /**< An error occurred */ |
|
58 |
} aos_status_t; |
|
51 |
typedef uint8_t aos_status_t; |
|
59 | 52 |
|
53 |
/** |
|
54 |
* @brief Success: no error or warning occurred. |
|
55 |
*/ |
|
56 |
#define AOS_OK ((aos_status_t)0x00u) |
|
57 |
|
|
58 |
/** |
|
59 |
* @brief Success: no error or warning occurred. |
|
60 |
*/ |
|
61 |
#define AOS_SUCCESS ((aos_status_t)0x00u) |
|
62 |
|
|
63 |
/** |
|
64 |
* @brief Some unspecified waring occurred. |
|
65 |
*/ |
|
66 |
#define AOS_WARNING ((aos_status_t)0x01u) |
|
67 |
|
|
68 |
/** |
|
69 |
* @brief Invalid arguments detected. |
|
70 |
*/ |
|
71 |
#define AOS_INVALIDARGUMENTS ((aos_status_t)0x02u) |
|
72 |
|
|
73 |
/** |
|
74 |
* @brief An error occurred. |
|
75 |
*/ |
|
76 |
#define AOS_ERROR ((aos_status_t)0x80u) |
|
77 |
|
|
78 |
/** |
|
79 |
* @brief An error occurred. |
|
80 |
*/ |
|
81 |
#define AOS_FAILURE ((aos_status_t)0x80u) |
|
60 | 82 |
|
61 | 83 |
/******************************************************************************/ |
62 | 84 |
/* MACROS */ |
Also available in: Unified diff