minor update

This commit is contained in:
Gabriel Wang 2024-02-22 09:36:41 +00:00
parent 1d15a6c431
commit 4d7cadcecc
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void EvrRtxThreadSwitched (osThreadId_t thread_id)
{
__on_context_switch((osRtxThread_t *)thread_id);
#if defined(RTE_Compiler_EventRecorder)
#if defined(RTE_Compiler_EventRecorder) || defined(RTE_CMSIS_View_EventRecorder)
# define EvtRtxThreadSwitched \
EventID(EventLevelOp, EvtRtxThreadNo, 0x19U)

View File

@ -1417,6 +1417,7 @@ bool perfc_port_init_system_timer(bool bIsTimeOccupied)
DCB->DEMCR |= DCB_DEMCR_UMON_EN_Msk |
DCB_DEMCR_SDME_Msk |
DCB_DEMCR_TRCENA_Msk |
DCB_DEMCR_MON_EN_Msk ;
/* enable PMU Cycle Counter interrupt */