set( CHIP
"mk20dx128vlf5" # McHCK mk20dx128vlf5
# "mk20dx256vlh7" # Kiibohd-dfu mk20dx256vlh7
+ CACHE STRING "Chip"
)
#| 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
- CACHE STRING "Compiler Type" )
+ "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}" )
###
# Directory Includes
#
-include_directories( ${CMAKE_SOURCE_DIR}/../Lib )
+include_directories (
+ ${CMAKE_SOURCE_DIR}/../Lib
+ ${CMAKE_SOURCE_DIR}
+)