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 Feb 1, 2024
1 parent de78403 commit 1d15a6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions perfc_port_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
#endif




/*============================ MACROS ========================================*/

#if defined(CMSIS_device_header)
Expand Down Expand Up @@ -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<<n);
Expand All @@ -1321,7 +1317,7 @@ void perfc_port_pmu_insert_to_debug_monitor_handler(void)
PMU->OVSCLR = wMask; /* clear Overflow Flag */

/* update corresponding counter */
s_dwEventCounter[n - 3] += dwCounterLoad;
s_dwEventCounter[n - 3] += 0x10000;
}
}
}
Expand Down

0 comments on commit 1d15a6c

Please sign in to comment.