aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2018-02-10 10:20:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2018-02-10 10:20:24 +0000
commit083c5f3ae361368da09c26cde1367e4474b3029c (patch)
tree4305fc6ce7d806e9036fbcf3e20508043e9266bc /os/hal/osal
parentb4dde0d786e73cea46a49965fcb25333edc7abee (diff)
downloadChibiOS-083c5f3ae361368da09c26cde1367e4474b3029c.tar.gz
ChibiOS-083c5f3ae361368da09c26cde1367e4474b3029c.tar.bz2
ChibiOS-083c5f3ae361368da09c26cde1367e4474b3029c.zip
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11471 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal')
-rw-r--r--os/hal/osal/nil/osal.h2
-rw-r--r--os/hal/osal/os-less/ARMCMx/osal.h2
-rw-r--r--os/hal/osal/rt/osal.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/osal/nil/osal.h b/os/hal/osal/nil/osal.h
index 68dacc4c6..9fd0b4192 100644
--- a/os/hal/osal/nil/osal.h
+++ b/os/hal/osal/nil/osal.h
@@ -48,7 +48,7 @@
#endif
#if !defined(TRUE) || defined(__DOXYGEN__)
-#define TRUE (!FALSE)
+#define TRUE 1
#endif
#define OSAL_SUCCESS false
diff --git a/os/hal/osal/os-less/ARMCMx/osal.h b/os/hal/osal/os-less/ARMCMx/osal.h
index 891944543..1bf98ab32 100644
--- a/os/hal/osal/os-less/ARMCMx/osal.h
+++ b/os/hal/osal/os-less/ARMCMx/osal.h
@@ -46,7 +46,7 @@
#endif
#if !defined(TRUE) || defined(__DOXYGEN__)
-#define TRUE (!FALSE)
+#define TRUE 1
#endif
#define OSAL_SUCCESS false
diff --git a/os/hal/osal/rt/osal.h b/os/hal/osal/rt/osal.h
index d0ffa5aed..75dc19c45 100644
--- a/os/hal/osal/rt/osal.h
+++ b/os/hal/osal/rt/osal.h
@@ -44,7 +44,7 @@
#endif
#if !defined(TRUE) || defined(__DOXYGEN__)
-#define TRUE (!FALSE)
+#define TRUE 1
#endif
#define OSAL_SUCCESS false