Skip to content

Commit

Permalink
Fix RTOS Event Filter initialization for Kernel events (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradCvjetkovic authored Sep 15, 2022
1 parent 5126318 commit dde5bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMSIS/RTOS2/RTX/Source/rtx_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ __STATIC_INLINE void evr_initialize (void) {
#endif
#if ((OS_EVR_KERNEL_LEVEL & 0x80U) != 0U)
(void)EventRecorderEnable( OS_EVR_KERNEL_LEVEL & 0x0FU, EvtRtxKernelNo, EvtRtxKernelNo);
(void)EventRecorderDisable(~OS_EVR_KERNEL_LEVEL & 0x0FU, EvtRtxKernelNo, EvtRtxMemoryNo);
(void)EventRecorderDisable(~OS_EVR_KERNEL_LEVEL & 0x0FU, EvtRtxKernelNo, EvtRtxKernelNo);
#endif
#if ((OS_EVR_THREAD_LEVEL & 0x80U) != 0U)
(void)EventRecorderEnable( OS_EVR_THREAD_LEVEL & 0x0FU, EvtRtxThreadNo, EvtRtxThreadNo);
Expand Down

0 comments on commit dde5bac

Please sign in to comment.