8000 renesas-ra: Add a macro definition to avoid compile error of FSP v4.4.0. · micropython/micropython@3229791 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3229791

Browse files
TakeoTakahashi2020dpgeorge
authored andcommitted
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>
1 parent b4834e5 commit 3229791

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/renesas-ra/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ SYSTEM_FILE ?= lib/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.o
8989
# Select the cross compile prefix
9090
CROSS_COMPILE ?= arm-none-eabi-
9191

92+
INC += -imacros boards/compiler_barrier.h
9293
INC += -I.
9394
INC += -I$(TOP)
9495
INC += -I$(BUILD)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// we need to provide a definition of __COMPILER_BARRIER() defined in cmsis/cmsis_gcc.h V5.4.1 for FSP v4.4.0
2+
#ifndef __COMPILER_BARRIER
3+
#define __COMPILER_BARRIER() __ASM volatile ("" ::: "memory")
4+
#endif

0 commit comments

Comments
 (0)
0