Skip to content

Commit fb2a476

Browse files
committed
add flags to compile freertos
1 parent a9218ce commit fb2a476

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

esp32c3/build.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ FFY_INCLUDES = -I$(MDK)/components/crypto \
99
-I$(MDK)/components/firefly-scene/include \
1010
-I$(MDK)/components/firefly-scene
1111
CFLAGS ?= -W -Wno-sign-compare -fno-common \
12-
-D_GNU_SOURCE \
12+
-DESP_PLATFORM -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE \
13+
-DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE \
14+
-D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE \
15+
-D_POSIX_READER_WRITER_LOCKS \
1316
-march=rv32imczicsr -mabi=ilp32 -Os \
1417
-ffunction-sections -fdata-sections \
1518
-I. -I$(MDK)/$(ARCH) -I$(MDK)

0 commit comments

Comments
 (0)