mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
17 lines
301 B
CMake
17 lines
301 B
CMake
if (TOOLCHAIN STREQUAL "gcc")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
-mthumb
|
|
-mcpu=cortex-m3
|
|
)
|
|
|
|
set(FREERTOS_PORT GCC_ARM_CM3 CACHE INTERNAL "")
|
|
|
|
elseif (TOOLCHAIN STREQUAL "iar")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
--cpu cortex-m3
|
|
)
|
|
|
|
set(FREERTOS_PORT IAR_ARM_CM3 CACHE INTERNAL "")
|
|
|
|
endif ()
|