Skip to content

Commit

Permalink
Add missing defines for CMSIS-View EventRecorder
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirUmek committed Sep 22, 2023
1 parent 58be777 commit 28a2da1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMSIS/RTOS2/FreeRTOS/Include/freertos_evr.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* --------------------------------------------------------------------------
* Copyright (c) 2013-2019 Arm Limited. All rights reserved.
* Copyright (c) 2013-2023 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/RTOS2/FreeRTOS/Include/freertos_os2.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* --------------------------------------------------------------------------
* Copyright (c) 2013-2021 Arm Limited. All rights reserved.
* Copyright (c) 2013-2023 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -33,7 +33,7 @@
#include CMSIS_device_header

/* Configuration and component setup check */
#if defined(RTE_Compiler_EventRecorder)
#if defined(RTE_Compiler_EventRecorder) || defined(RTE_CMSIS_View_EventRecorder)
#if !defined(EVR_FREERTOS_DISABLE)
#define USE_TRACE_EVENT_RECORDER
/*
Expand Down
6 changes: 3 additions & 3 deletions CMSIS/RTOS2/FreeRTOS/Source/ARM/clib_arm.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* --------------------------------------------------------------------------
* Copyright (c) 2013-2022 Arm Limited. All rights reserved.
* Copyright (c) 2013-2023 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -47,7 +47,7 @@ __WEAK
void _platform_post_stackheap_init (void);
void _platform_post_stackheap_init (void) {
/* Initialize OS, memory, etc. */
#if defined(RTE_Compiler_EventRecorder)
#if defined(RTE_Compiler_EventRecorder) || defined(RTE_CMSIS_View_EventRecorder)
EvrFreeRTOSSetup(0);
#endif
}
Expand All @@ -58,7 +58,7 @@ __WEAK
void software_init_hook (void);
void software_init_hook (void) {
/* Initialize OS, memory, etc. */
#if defined(RTE_Compiler_EventRecorder)
#if defined(RTE_Compiler_EventRecorder) || defined(RTE_CMSIS_View_EventRecorder)
EvrFreeRTOSSetup(0);
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/RTOS2/FreeRTOS/Source/freertos_evr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* --------------------------------------------------------------------------
* Copyright (c) 2013-2019 Arm Limited. All rights reserved.
* Copyright (c) 2013-2023 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -227,7 +227,7 @@ void EvrFreeRTOSSetup (uint32_t reset) {
#endif
}

#endif /* RTE_Compiler_EventRecorder */
#endif /* defined(RTE_Compiler_EventRecorder) || defined(RTE_CMSIS_View_EventRecorder) */

/* Tasks */

Expand Down

0 comments on commit 28a2da1

Please sign in to comment.