Skip to content

Commit

Permalink
Guard include of RTE_Components.h with presence of _RTE_
Browse files Browse the repository at this point in the history
Fixes #205
  • Loading branch information
JonatanAntoni committed Nov 19, 2024
1 parent 467a112 commit d1fc5e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMSIS/Core/Source/irq_ctrl_gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@

#include <stddef.h>

#if defined(_RTE_)
#include "RTE_Components.h"
#elif !defined(CMSIS_device_header)
#error "CMSIS_device_header must be defined to point to CMSIS device header"
#endif

#include CMSIS_device_header

#include "irq_ctrl.h"
Expand Down
6 changes: 6 additions & 0 deletions CMSIS/RTOS2/Source/os_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
#include "os_tick.h"

//lint -emacro((923,9078),SCB,SysTick) "cast from unsigned long to pointer"

#if defined(_RTE_)
#include "RTE_Components.h"
#elif !defined(CMSIS_device_header)
#error "CMSIS_device_header must be defined to point to CMSIS device header"
#endif

#include CMSIS_device_header

#ifdef SysTick
Expand Down

0 comments on commit d1fc5e9

Please sign in to comment.