diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-03 09:40:49 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-03 09:40:49 +0000 |
commit | 030fe1d90878c6bcdfe771e4d933e859ca023698 (patch) | |
tree | ba9ff9c6f1aaf991cf9a41d3585227dfcb90e46e /os/rt/include | |
parent | b360a11a9648e9e656b9b907814229f8e113f9e5 (diff) | |
download | ChibiOS-030fe1d90878c6bcdfe771e4d933e859ca023698.tar.gz ChibiOS-030fe1d90878c6bcdfe771e4d933e859ca023698.tar.bz2 ChibiOS-030fe1d90878c6bcdfe771e4d933e859ca023698.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7846 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r-- | os/rt/include/chdebug.h | 4 | ||||
-rw-r--r-- | os/rt/include/chsys.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h index 893ec26b1..c4fd39f39 100644 --- a/os/rt/include/chdebug.h +++ b/os/rt/include/chdebug.h @@ -121,8 +121,8 @@ typedef struct { /*===========================================================================*/
#if CH_DBG_SYSTEM_STATE_CHECK == TRUE
-#define _dbg_enter_lock() (ch.dbg.lock_cnt = 1)
-#define _dbg_leave_lock() (ch.dbg.lock_cnt = 0)
+#define _dbg_enter_lock() (ch.dbg.lock_cnt = (cnt_t)1)
+#define _dbg_leave_lock() (ch.dbg.lock_cnt = (cnt_t)0)
#endif
/* When the state checker feature is disabled then the following functions
diff --git a/os/rt/include/chsys.h b/os/rt/include/chsys.h index 9d1bff204..a92a67008 100644 --- a/os/rt/include/chsys.h +++ b/os/rt/include/chsys.h @@ -38,10 +38,10 @@ * @name Masks of executable integrity checks.
* @{
*/
-#define CH_INTEGRITY_RLIST 1
-#define CH_INTEGRITY_VTLIST 2
-#define CH_INTEGRITY_REGISTRY 4
-#define CH_INTEGRITY_PORT 8
+#define CH_INTEGRITY_RLIST 1U
+#define CH_INTEGRITY_VTLIST 2U
+#define CH_INTEGRITY_REGISTRY 4U
+#define CH_INTEGRITY_PORT 8U
/** @} */
/*===========================================================================*/
|