Add F_CPU

pull/11/head
Alex Voinea 2021-05-17 19:09:49 +03:00
parent 13ee425352
commit 15c56f2a1c
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ endif()
if(CMAKE_CROSSCOMPILING)
# mcu related settings
set(MCU_FLAGS -mmcu=atmega32u4)
set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L)
add_compile_options(${MCU_FLAGS})
add_link_options(${MCU_FLAGS})