mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-17 19:13:03 +08:00
minor update
This commit is contained in:
parent
1d15a6c431
commit
4d7cadcecc
@ -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)
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user