From 1d15a6c43112265fb066732ad57484ac9c7e83d5 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Thu, 1 Feb 2024 18:34:00 +0000 Subject: [PATCH] Update perfc_port_pmu.c --- perfc_port_pmu.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/perfc_port_pmu.c b/perfc_port_pmu.c index 6b92b9a..cb2dacd 100644 --- a/perfc_port_pmu.c +++ b/perfc_port_pmu.c @@ -42,8 +42,6 @@ #endif - - /*============================ MACROS ========================================*/ #if defined(CMSIS_device_header) @@ -1311,8 +1309,6 @@ void perfc_port_pmu_insert_to_debug_monitor_handler(void) } if (chCounter > 6) { - uint64_t dwCounterLoad - = (uint64_t)1 << ((PMU->TYPE & PMU_TYPE_SIZE_CNTS_Msk) >> PMU_TYPE_SIZE_CNTS_Pos); for (int_fast8_t n = 6; n < chCounter; n++) { uint32_t wMask = (1<OVSCLR = wMask; /* clear Overflow Flag */ /* update corresponding counter */ - s_dwEventCounter[n - 3] += dwCounterLoad; + s_dwEventCounter[n - 3] += 0x10000; } } }