#| You _MUST_ clean the build directory if you change this value
#|
set( CHIP
- "mk20dx128vlf5" # McHCK mk20dx128vlf5
-# "mk20dx256vlh7" # Kiibohd-dfu mk20dx256vlh7
+ #"mk20dx128vlf5" # McHCK mk20dx128vlf5
+ "mk20dx256vlh7" # Kiibohd-dfu mk20dx256vlh7
)
#| Stick with gcc unless you know what you're doing
#| Currently only arm is supported with clang
set( COMPILER
- "gcc" # arm-none-eabi-gcc / avr-gcc - Default
-# "clang" # arm-none-eabi
+ "gcc" # arm-none-eabi-gcc / avr-gcc - Default
+# "clang" # arm-none-eabi
CACHE STRING "Compiler Type" )
usb.c
)
+# Only compile in if necessary
+if( CHIP STREQUAL "mk20dx256vlh7" )
+ set( SRCS ${SRCS}
+ debug.c
+ )
+endif()
+
+
message( STATUS "Bootloader Source Files:" )
message( "${SRCS}" )