From dee8610be5aa92495b4d34cfcfc1bf1f5db279dd Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Wed, 10 Apr 2024 11:21:21 -0700 Subject: [PATCH] setup to directly define the AVR device type. Fixes issues with the 'io.h' library --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7574a9..49362ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,8 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic") - +#Define the device type +add_definitions(-D__AVR_ATtiny13A__) # ####################################### # TESTING STUFF