CH_DBG_SYSTEM_STATE_CHECK for simulator
This commit is contained in:
parent
1e2ad62cf9
commit
517ef4c011
|
@ -19,13 +19,8 @@
|
|||
* Unfortunately ChibiOS has two versions of methods for different
|
||||
* contexts.
|
||||
*/
|
||||
#ifndef SIMULATOR
|
||||
#define isLocked() (ch.dbg.lock_cnt > 0)
|
||||
#define isIsrContext() (ch.dbg.isr_cnt > 0)
|
||||
#else
|
||||
#define isLocked() (0)
|
||||
#define isIsrContext() (0)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
|
|
|
@ -339,7 +339,10 @@
|
|||
*
|
||||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
|
||||
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
|
||||
|
||||
#define ON_LOCK_HOOK
|
||||
#define ON_UNLOCK_HOOK
|
||||
|
||||
#define USE_PORT_LOCK TRUE
|
||||
|
||||
|
|
Loading…
Reference in New Issue