mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
2a67ce773d
add cmake for ch32v20x, skip freertos examples for CH32V20X, also skip net webserver due to lack of RAM update to use openocd with wlinke adapter
19 lines
458 B
CMake
19 lines
458 B
CMake
if (TOOLCHAIN STREQUAL "gcc")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
-march=rv32imac_zicsr
|
|
-mabi=ilp32
|
|
)
|
|
set(FREERTOS_PORT GCC_RISC_V CACHE INTERNAL "")
|
|
|
|
elseif (TOOLCHAIN STREQUAL "clang")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
-march=rv32imac_zicsr
|
|
-mabi=ilp32
|
|
)
|
|
set(FREERTOS_PORT GCC_RISC_V CACHE INTERNAL "")
|
|
|
|
elseif (TOOLCHAIN STREQUAL "iar")
|
|
message(FATAL_ERROR "IAR not supported")
|
|
set(FREERTOS_PORT IAR_RISC_V CACHE INTERNAL "")
|
|
endif ()
|