diff options
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/include/ch.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/kernel/include/ch.h b/os/kernel/include/ch.h index 65ca431e0..7386b622b 100644 --- a/os/kernel/include/ch.h +++ b/os/kernel/include/ch.h @@ -72,6 +72,16 @@ #define TRUE (!FALSE)
#endif
+/*
+ * Human readable boolean error conditions.
+ */
+#ifndef CH_SUCCESS
+#define CH_SUCCESS FALSE
+#endif
+#ifndef CH_FAILED
+#define CH_FAILED TRUE
+#endif
+
#include "chconf.h"
#include "chtypes.h"
#include "chlists.h"
|