]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Bootloader/CMakeLists.txt
Adding initial dfu-upload code and debugging for Bootloader.
[kiibohd-controller.git] / Bootloader / CMakeLists.txt
index ebe5ff4603a99351e1d7460d977ca6ca7ec4590d..7a938d93f1bfcc5818b15bf17f9ba50f1d456ba7 100644 (file)
 #| You _MUST_ clean the build directory if you change this value
 #|
 set( CHIP
-       "mk20dx128vlf5"    # McHCK    mk20dx128vlf5
-#      "mk20dx256vlh7"    # Kiibohd-dfu
+       #"mk20dx128vlf5"    # McHCK       mk20dx128vlf5
+       "mk20dx256vlh7"    # Kiibohd-dfu mk20dx256vlh7
 )
 
 
+
+###
+# Compiler Selection
+#
+
+#| *** EXPERIMENTAL ***
+#| 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" )
+
+
+
 ###
 # Bootloader Configuration
 #
@@ -45,6 +60,7 @@ include( initialize )
 #
 set( SRCS
        main.c
+       debug.c # TODO only compile in if necessary
        dfu.c
        dfu.desc.c
        flash.c