From c3ca73072fd1b598a7b2138c7a688e5a17e2ee24 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Sat, 27 Jan 2024 14:43:56 +0000 Subject: [PATCH] Update perfc_port_pmu.c --- perfc_port_pmu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/perfc_port_pmu.c b/perfc_port_pmu.c index d980515..33f6145 100644 --- a/perfc_port_pmu.c +++ b/perfc_port_pmu.c @@ -877,6 +877,13 @@ void perfc_port_clear_system_timer_counter(void); #if __PERFC_USE_PMU_PORTING__ + +__USED +void DebugMon_Handler(void) +{ + +} + bool perfc_port_init_system_timer(bool bIsTimeOccupied) { @@ -892,6 +899,9 @@ bool perfc_port_init_system_timer(bool bIsTimeOccupied) perfc_port_stop_system_timer_counting(); perfc_port_clear_system_timer_counter(); perfc_port_clear_system_timer_ovf_pending(); + + /* enable interrupt */ + PMU->INTENSET = PMU_INTENSET_CCYCNT_ENABLE_Msk; ARM_PMU_CNTR_Enable(PMU_CNTENSET_CCNTR_ENABLE_Msk); ARM_PMU_Enable();