Skip to content

Commit

Permalink
Update perfc_port_pmu.c
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Jan 27, 2024
1 parent 9b8a258 commit c3ca730
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions perfc_port_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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();
Expand Down

0 comments on commit c3ca730

Please sign in to comment.