ChibiOS/RT
6.0.3
|
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 |
Fill value for thread stack area in debug mode.
Definition at line 47 of file chdebug.h.
Referenced by chThdCreate(), chThdCreateFromHeap(), chThdCreateFromMemoryPool(), chThdCreateStatic(), and chThdCreateSuspended().
#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 |
Definition at line 101 of file chdebug.h.
Referenced by chCondBroadcastI(), chCondObjectInit(), chCondSignal(), chCondSignalI(), chCondWaitS(), chCondWaitTimeoutS(), chCoreAllocAlignedWithOffsetI(), chEvtBroadcastFlagsI(), chEvtDispatch(), chEvtRegisterMaskWithFlags(), chEvtSignal(), chEvtSignalI(), chEvtUnregister(), chFifoObjectInitAligned(), chGuardedPoolLoadArray(), chHeapAllocAligned(), chHeapFree(), chHeapObjectInit(), chMBFetchI(), chMBFetchTimeoutS(), chMBObjectInit(), chMBPostAheadI(), chMBPostAheadTimeoutS(), chMBPostI(), chMBPostTimeoutS(), chMBResetI(), chMsgSend(), chMtxLockS(), chMtxObjectInit(), chMtxTryLockS(), chMtxUnlock(), chMtxUnlockS(), chPipeObjectInit(), chPipeReadTimeout(), chPipeReset(), chPipeWriteTimeout(), chPoolAllocI(), chPoolFreeI(), chPoolLoadArray(), chPoolObjectInitAligned(), chSchReadyAheadI(), chSchReadyI(), chSemAddCounterI(), chSemObjectInit(), chSemResetI(), chSemSignal(), chSemSignalI(), chSemSignalWait(), chSemWaitS(), chSemWaitTimeoutS(), chThdCreateFromMemoryPool(), chThdCreateStatic(), chThdCreateSuspendedI(), chThdSetPriority(), chThdSleepS(), chThdWait(), chTimeAddX(), chVTDoResetI(), and chVTDoSetI().
#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 |
Definition at line 127 of file chdebug.h.
Referenced by chCondWaitS(), chCondWaitTimeoutS(), chEvtDispatch(), chFifoSendObject(), chFifoSendObjectAhead(), chFifoSendObjectAheadI(), chFifoSendObjectAheadS(), chFifoSendObjectI(), chFifoSendObjectS(), chGuardedPoolAllocI(), chHeapFree(), chMsgGet(), chMsgRelease(), chMtxLockS(), chMtxTryLockS(), chMtxUnlock(), chMtxUnlockS(), chPoolAllocI(), chRegNextThread(), chSchReadyAheadI(), chSchReadyI(), chSchWakeupS(), chSemAddCounterI(), chSemResetI(), chSemSignal(), chSemSignalI(), chSemSignalWait(), chSemWaitS(), chSemWaitTimeoutS(), chSysUnlock(), chThdAddRef(), chThdCreate(), chThdCreateStatic(), chThdCreateSuspended(), chThdDoDequeueNextI(), chThdExitS(), chThdRelease(), chThdResumeI(), chThdResumeS(), chThdStart(), chThdStartI(), chThdSuspendS(), chThdSuspendTimeoutS(), chThdWait(), chTimeI2MS(), chTimeI2S(), chTimeI2US(), chTimeMS2I(), chTimeS2I(), chTimeUS2I(), chVTDoResetI(), chVTDoSetI(), and chVTDoTickI().
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.
Referenced by chSysDisable().
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.
Referenced by chSysSuspend().
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.
Referenced by chSysEnable().
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.
Referenced by chSysLock().
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.
Referenced by chSysUnlock().
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.
Referenced by chSysLockFromISR().
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.
Referenced by chSysUnlockFromISR().
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, and ch_system_debug::lock_cnt.
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, and ch_system_debug::lock_cnt.
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.
Referenced by chBSemGetStateI(), chBSemResetI(), chBSemSignalI(), chCondBroadcastI(), chCondSignalI(), chCoreAllocAlignedWithOffsetI(), chDbgResumeTraceI(), chDbgSuspendTraceI(), chDbgWriteTraceI(), chEvtBroadcastFlagsI(), chEvtSignalI(), chMBFetchI(), chMBGetFreeCountI(), chMBGetUsedCountI(), chMBPeekI(), chMBPostAheadI(), chMBPostI(), chMBResetI(), chMsgIsPendingI(), chMtxGetOwnerI(), chPoolAllocI(), chPoolFreeI(), chSchReadyAheadI(), chSchReadyI(), chSemAddCounterI(), chSemFastSignalI(), chSemFastWaitI(), chSemGetCounterI(), chSemResetI(), chSemSignalI(), chSysIntegrityCheckI(), chSysTimerHandlerI(), chThdCreateSuspendedI(), chThdQueueIsEmptyI(), chVTDoResetI(), chVTDoSetI(), chVTDoTickI(), chVTGetTimersStateI(), chVTIsArmedI(), and queue_notempty().
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.
Referenced by chBSemWaitS(), chBSemWaitTimeoutS(), chCondWaitS(), chCondWaitTimeoutS(), chMBFetchTimeoutS(), chMBPostAheadTimeoutS(), chMBPostTimeoutS(), chMsgReleaseS(), chMtxLockS(), chMtxQueueNotEmptyS(), chMtxTryLockS(), chMtxUnlockS(), chSchCanYieldS(), chSchGoSleepS(), chSchGoSleepTimeoutS(), chSchIsRescRequiredI(), chSchRescheduleS(), chSchWakeupS(), chSemWaitS(), and chSemWaitTimeoutS().