|
ChibiOS
21.6.0
|

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... | |
Typedefs | |
| typedef struct ch_system_debug | system_debug_t |
| System debug data structure. More... | |
Data Structures | |
| struct | ch_system_debug |
| System debug data structure. 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... | |
| static void | __dbg_object_init (system_debug_t *sdp) |
| Debug support initialization. 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 |
| typedef struct ch_system_debug system_debug_t |
System debug data structure.
| void __dbg_check_disable | ( | void | ) |
Guard code for chSysDisable().
Definition at line 112 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_suspend | ( | void | ) |
Guard code for chSysSuspend().
Definition at line 126 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_enable | ( | void | ) |
Guard code for chSysEnable().
Definition at line 140 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_lock | ( | void | ) |
Guard code for chSysLock().
Definition at line 154 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_unlock | ( | void | ) |
Guard code for chSysUnlock().
Definition at line 169 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_lock_from_isr | ( | void | ) |
Guard code for chSysLockFromIsr().
Definition at line 184 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_unlock_from_isr | ( | void | ) |
Guard code for chSysUnlockFromIsr().
Definition at line 199 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| void __dbg_check_enter_isr | ( | void | ) |
Guard code for CH_IRQ_PROLOGUE().
Definition at line 214 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, port_lock_from_isr(), port_unlock_from_isr(), and unlikely.

| void __dbg_check_leave_isr | ( | void | ) |
Guard code for CH_IRQ_EPILOGUE().
Definition at line 231 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, port_lock_from_isr(), port_unlock_from_isr(), and unlikely.

| 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 251 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

| 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 268 of file chdebug.c.
References chSysHalt(), currcore, ch_os_instance::dbg, ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and unlikely.

|
inlinestatic |
Debug support initialization.
| [out] | sdp | pointer to the system_debug_t structure |
Definition at line 192 of file chdebug.h.
References ch_system_debug::isr_cnt, ch_system_debug::lock_cnt, and ch_system_debug::panic_msg.
Referenced by chInstanceObjectInit().