From 4d7cadceccc52db20433f79aa395e857ba29a71b Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Thu, 22 Feb 2024 09:36:41 +0000 Subject: [PATCH] minor update --- os/perf_os_patch_rtx5.c | 2 +- perfc_port_pmu.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/os/perf_os_patch_rtx5.c b/os/perf_os_patch_rtx5.c index 24132c7..ce16b1e 100644 --- a/os/perf_os_patch_rtx5.c +++ b/os/perf_os_patch_rtx5.c @@ -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) diff --git a/perfc_port_pmu.c b/perfc_port_pmu.c index cb2dacd..a5aa542 100644 --- a/perfc_port_pmu.c +++ b/perfc_port_pmu.c @@ -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 */