mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
18 lines
307 B
Makefile
18 lines
307 B
Makefile
ifeq ($(TOOLCHAIN),gcc)
|
|
CFLAGS += \
|
|
-mthumb \
|
|
-mcpu=cortex-m3 \
|
|
-mfloat-abi=soft \
|
|
|
|
else ifeq ($(TOOLCHAIN),iar)
|
|
# IAR Flags
|
|
CFLAGS += \
|
|
--cpu cortex-m3 \
|
|
|
|
ASFLAGS += \
|
|
--cpu cortex-m3
|
|
endif
|
|
|
|
# For freeRTOS port source
|
|
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|