diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-17 18:30:45 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-17 18:30:45 +0000 |
commit | 29fb7d1e9da06e21764e8cd89e2720c4b510d65a (patch) | |
tree | 0c01bad4505b9185334eb7f1ee6b8b06602eb0ae /os/kernel | |
parent | 72e66cd47c5f003b97b2c78edf86b900257c0e65 (diff) | |
download | ChibiOS-29fb7d1e9da06e21764e8cd89e2720c4b510d65a.tar.gz ChibiOS-29fb7d1e9da06e21764e8cd89e2720c4b510d65a.tar.bz2 ChibiOS-29fb7d1e9da06e21764e8cd89e2720c4b510d65a.zip |
SDC. Added global macros CH_SUCCESS/CH_FAILED in ch.h. SDC driver changed respectively.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4107 35acf78f-673a-0410-8e92-d51de3d6d3f4
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"
|