diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-14 11:07:04 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-14 11:07:04 +0000 |
commit | 1409bd15bd3bfa57c042caaed6d4b755e23ca235 (patch) | |
tree | f48570162d8e519978a3f50584f37a159c6fb95e /os/rt/include/chdebug.h | |
parent | 79a15865134fdc2522db29995bd5417e7b00a0d6 (diff) | |
download | ChibiOS-1409bd15bd3bfa57c042caaed6d4b755e23ca235.tar.gz ChibiOS-1409bd15bd3bfa57c042caaed6d4b755e23ca235.tar.bz2 ChibiOS-1409bd15bd3bfa57c042caaed6d4b755e23ca235.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7507 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include/chdebug.h')
-rw-r--r-- | os/rt/include/chdebug.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h index d0223ef10..d8643ea64 100644 --- a/os/rt/include/chdebug.h +++ b/os/rt/include/chdebug.h @@ -71,13 +71,6 @@ /* Derived constants and error checks. */
/*===========================================================================*/
-#if CH_DBG_ENABLE_ASSERTS || CH_DBG_ENABLE_CHECKS || \
- CH_DBG_ENABLE_STACK_CHECK || CH_DBG_SYSTEM_STATE_CHECK
-#define CH_DBG_ENABLED TRUE
-#else
-#define CH_DBG_ENABLED FALSE
-#endif
-
/*===========================================================================*/
/* Module data structures and types. */
/*===========================================================================*/
@@ -129,8 +122,8 @@ typedef struct { /*===========================================================================*/
#if CH_DBG_SYSTEM_STATE_CHECK
-#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 = 1)
+#define _dbg_leave_lock() (ch.dbg.lock_cnt = 0)
#endif
/* When the state checker feature is disabled then the following functions
@@ -221,7 +214,7 @@ extern "C" { void chDbgCheckClassS(void);
#endif
#if CH_DBG_ENABLE_TRACE || defined(__DOXYGEN__)
- void _trace_init(void);
+ void _dbg_trace_init(void);
void _dbg_trace(thread_t *otp);
#endif
#ifdef __cplusplus
|