Add F_CPU
parent
13ee425352
commit
15c56f2a1c
|
|
@ -125,7 +125,7 @@ endif()
|
||||||
|
|
||||||
if(CMAKE_CROSSCOMPILING)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
# mcu related settings
|
# mcu related settings
|
||||||
set(MCU_FLAGS -mmcu=atmega32u4)
|
set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L)
|
||||||
add_compile_options(${MCU_FLAGS})
|
add_compile_options(${MCU_FLAGS})
|
||||||
add_link_options(${MCU_FLAGS})
|
add_link_options(${MCU_FLAGS})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue