diff options
| author | hathach <[email protected]> | 2022-12-05 12:09:41 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-05 12:09:41 +0700 |
| commit | de5a67bf3b8737a580539c5fbc6a054c90e4a084 (patch) | |
| tree | 42ecb08765999aa78d2dfd8a9b862650233b88e7 /examples/device/hid_composite_freertos/Makefile | |
| parent | 52261ac02dfbe58f35f959be852f0949cc0744cd (diff) | |
clean osal_freertos, update freertos examples to work with configSUPPORT_DYNAMIC_ALLOCATION only
note: for example to build with configSUPPORT_STATIC_ALLOCATION = 0, one
of heap_n.c must be included in makefile/cmake
Diffstat (limited to 'examples/device/hid_composite_freertos/Makefile')
| -rw-r--r-- | examples/device/hid_composite_freertos/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/device/hid_composite_freertos/Makefile b/examples/device/hid_composite_freertos/Makefile index 6c8c43ddd..9c66b896d 100644 --- a/examples/device/hid_composite_freertos/Makefile +++ b/examples/device/hid_composite_freertos/Makefile @@ -28,8 +28,15 @@ SRC_C += \ $(FREERTOS_SRC)/timers.c \ $(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c)) -# Suppress FreeRTOS warnings -CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls +# include heap manage if configSUPPORT_DYNAMIC_ALLOCATION = 1 +# SRC_C += $(FREERTOS_SRC)/portable/MemMang/heap_1.c +# CFLAGS += -Wno-error=sign-compare + +# Suppress FreeRTOSConfig.h warnings +CFLAGS += -Wno-error=redundant-decls + +# Suppress FreeRTOS source warnings +CFLAGS += -Wno-error=cast-qual # FreeRTOS (lto + Os) linker issue LDFLAGS += -Wl,--undefined=vTaskSwitchContext |
