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/chdebug.h | |
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/chdebug.h')
-rw-r--r-- | os/rt/include/chdebug.h | 4 |
1 files changed, 2 insertions, 2 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
|