basic error return for etk
This commit is contained in:
parent
7cc9076ab8
commit
e0416fc774
@ -54,6 +54,14 @@
|
|||||||
typedef uint32_t uniChar_t;
|
typedef uint32_t uniChar_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
ERR_NONE = 0, //!< No error, luckily everything went fine
|
||||||
|
ERR_FAIL, //!< Miscellaneous failure
|
||||||
|
ERR_INVAL, //!< Invalid entry parameter
|
||||||
|
ERR_MEM, //!< Dynamic memory allocation failure
|
||||||
|
ERR_TIMEOUT, //!< Request time out
|
||||||
|
ERR_BUSY, //!< Element curently Busy
|
||||||
|
}erreurCode_te;
|
||||||
|
|
||||||
|
|
||||||
#define etk_min(elemA, elemB) ((elemA)<(elemB)) ? (elemA) : (elemB)
|
#define etk_min(elemA, elemB) ((elemA)<(elemB)) ? (elemA) : (elemB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user