From 15c56f2a1c14ff5894ea284c377c14107c891a1f Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 17 May 2021 19:09:49 +0300 Subject: [PATCH] Add F_CPU --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 138f023..63758b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})