fix Segger Sysview bindings
This commit is contained in:
parent
8be1d1589c
commit
26f24c19b3
|
@ -102,7 +102,7 @@ void SYSVIEW_ChibiOS_SendTaskInfo(const void *_tp) {
|
|||
memset(&TaskInfo, 0, sizeof(TaskInfo));
|
||||
TaskInfo.TaskID = (U32)tp;
|
||||
TaskInfo.sName = tp->name;
|
||||
TaskInfo.Prio = (U32)tp->prio;
|
||||
TaskInfo.Prio = (U32)tp->hdr.pqueue.prio;
|
||||
#if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)
|
||||
TaskInfo.StackBase = (U32)tp->wabase;
|
||||
TaskInfo.StackSize = (U32)tp->ctx.sp - (U32)tp->wabase;
|
||||
|
|
|
@ -187,10 +187,10 @@ void SYSVIEW_ChibiOS_Start(U32 SysFreq, U32 CPUFreq, const char *isr_description
|
|||
* thread as a special case, so we need to do some ugly handling here.
|
||||
*/
|
||||
#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
|
||||
if (otp->prio != IDLEPRIO) { \
|
||||
if (otp->hdr.pqueue.prio != IDLEPRIO) { \
|
||||
SEGGER_SYSVIEW_OnTaskStopReady((U32)otp, otp->state); \
|
||||
} \
|
||||
if (ntp->prio == IDLEPRIO) { \
|
||||
if (ntp->hdr.pqueue.prio == IDLEPRIO) { \
|
||||
SEGGER_SYSVIEW_OnIdle(); \
|
||||
} else { \
|
||||
SEGGER_SYSVIEW_OnTaskStartExec((U32)ntp); \
|
||||
|
@ -210,6 +210,7 @@ void SYSVIEW_ChibiOS_Start(U32 SysFreq, U32 CPUFreq, const char *isr_description
|
|||
* accurate.
|
||||
*/
|
||||
#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
|
||||
_dbg_check_enter_isr(); \
|
||||
SEGGER_SYSVIEW_RecordEnterISR(); \
|
||||
_CH_CFG_IRQ_PROLOGUE_HOOK(); \
|
||||
}
|
||||
|
@ -265,6 +266,7 @@ void SYSVIEW_ChibiOS_Start(U32 SysFreq, U32 CPUFreq, const char *isr_description
|
|||
#endif
|
||||
|
||||
#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
|
||||
_dbg_check_leave_isr(); \
|
||||
_CH_CFG_IRQ_EPILOGUE_HOOK(); \
|
||||
port_lock_from_isr(); \
|
||||
_dbg_enter_lock(); \
|
||||
|
|
Loading…
Reference in New Issue