From c2411619dd4f68a7ee4cb9248981e9e3481100a1 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 20 Sep 2021 11:32:38 +0200 Subject: [PATCH] Set LUFA F_USB --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87d70f5..025c022 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,7 @@ if(CMAKE_CROSSCOMPILING) endif() # mcu related settings - set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L) + set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L -DF_USB=F_CPU) add_compile_options(${MCU_FLAGS}) add_link_options(${MCU_FLAGS})