Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Feb 22, 2024
1 parent 1d15a6c commit 4d7cadc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion os/perf_os_patch_rtx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions perfc_port_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4d7cadc

Please sign in to comment.