renesas-ra: Add a macro definition to avoid compile error of FSP v4.4.0.

FSP v4.4.0 refers to CMSIS V5.4.1, and __COMPILER_BARRIER() is used in bsp.
On the other hand, lib/cmsis is V5.1.0 and the macro is not defined.
Therefore, compile error happens.
As the workaround, the macro definition is added.
If lib/cmsis is updated in the future, this addition can be removed.

Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
This commit is contained in:
Takeo Takahashi 2023-05-01 22:54:32 +09:00 committed by Damien George
parent b4834e5cba
commit 3229791b60
2 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,7 @@ SYSTEM_FILE ?= lib/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.o
# Select the cross compile prefix
CROSS_COMPILE ?= arm-none-eabi-
INC += -imacros boards/compiler_barrier.h
INC += -I.
INC += -I$(TOP)
INC += -I$(BUILD)

View File

@ -0,0 +1,4 @@
// we need to provide a definition of __COMPILER_BARRIER() defined in cmsis/cmsis_gcc.h V5.4.1 for FSP v4.4.0
#ifndef __COMPILER_BARRIER
#define __COMPILER_BARRIER() __ASM volatile ("" ::: "memory")
#endif