|
ChibiOS
20.3.4
|

Debug APIs and services:
chSysDisable().chSysSuspend() chSysEnable().chSysLock().chSysUnlock().chSysLockFromISR().chSysUnlockFromISR().CH_IRQ_PROLOGUE().CH_IRQ_EPILOGUE().CH_IRQ_PROLOGUE() missing.Debug related settings | |
| #define | CH_DBG_STACK_FILL_VALUE 0x55 |
| Fill value for thread stack area in debug mode. More... | |
Macro Functions | |
| #define | chDbgCheck(c) |
| Function parameters check. More... | |
| #define | chDbgAssert(c, r) |
| Condition assertion. More... | |
Functions | |
| void | _dbg_check_disable (void) |
Guard code for chSysDisable(). More... | |
| void | _dbg_check_suspend (void) |
Guard code for chSysSuspend(). More... | |
| void | _dbg_check_enable (void) |
Guard code for chSysEnable(). More... | |
| void | _dbg_check_lock (void) |
Guard code for chSysLock(). More... | |
| void | _dbg_check_unlock (void) |
Guard code for chSysUnlock(). More... | |
| void | _dbg_check_lock_from_isr (void) |
Guard code for chSysLockFromIsr(). More... | |
| void | _dbg_check_unlock_from_isr (void) |
Guard code for chSysUnlockFromIsr(). More... | |
| void | _dbg_check_enter_isr (void) |
Guard code for CH_IRQ_PROLOGUE(). More... | |
| void | _dbg_check_leave_isr (void) |
Guard code for CH_IRQ_EPILOGUE(). More... | |
| void | chDbgCheckClassI (void) |
| I-class functions context check. More... | |
| void | chDbgCheckClassS (void) |
| S-class functions context check. More... | |
| #define CH_DBG_STACK_FILL_VALUE 0x55 |
| #define chDbgCheck | ( | c | ) |
Function parameters check.
If the condition check fails then the kernel panics and halts.
CH_DBG_ENABLE_CHECKS switch is specified in chconf.h else the macro does nothing.| [in] | c | the condition to be verified to be true |
| #define chDbgAssert | ( | c, | |
| r | |||
| ) |
Condition assertion.
If the condition check fails then the kernel panics with a message and halts.
CH_DBG_ENABLE_ASSERTS switch is specified in chconf.h else the macro does nothing. | [in] | c | the condition to be verified to be true |
| [in] | r | a remark string |
| void _dbg_check_disable | ( | void | ) |
Guard code for chSysDisable().
Definition at line 112 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_suspend | ( | void | ) |
Guard code for chSysSuspend().
Definition at line 124 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_enable | ( | void | ) |
Guard code for chSysEnable().
Definition at line 136 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_lock | ( | void | ) |
Guard code for chSysLock().
Definition at line 148 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_unlock | ( | void | ) |
Guard code for chSysUnlock().
Definition at line 161 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_lock_from_isr | ( | void | ) |
Guard code for chSysLockFromIsr().
Definition at line 174 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_unlock_from_isr | ( | void | ) |
Guard code for chSysUnlockFromIsr().
Definition at line 187 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void _dbg_check_enter_isr | ( | void | ) |
Guard code for CH_IRQ_PROLOGUE().
Definition at line 200 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, port_lock_from_isr(), and port_unlock_from_isr().

| void _dbg_check_leave_isr | ( | void | ) |
Guard code for CH_IRQ_EPILOGUE().
Definition at line 215 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, port_lock_from_isr(), and port_unlock_from_isr().

| void chDbgCheckClassI | ( | void | ) |
I-class functions context check.
Verifies that the system is in an appropriate state for invoking an I-class API function. A panic is generated if the state is not compatible.
Definition at line 233 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.

| void chDbgCheckClassS | ( | void | ) |
S-class functions context check.
Verifies that the system is in an appropriate state for invoking an S-class API function. A panic is generated if the state is not compatible.
Definition at line 248 of file chdebug.c.
References ch, chSysHalt(), ch_system::dbg, ch_system_debug::isr_cnt, and ch_system_debug::lock_cnt.
