]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - avr.cmake
Adding CLI and CDC Serial support for Teensy 2.0 and Teensy 2.0++
[kiibohd-controller.git] / avr.cmake
index c39ed0daa6eb43b11827700eeacca9f9061a0e4f..239563a79cbe365ab6b21d13b876362f2eaa93d2 100644 (file)
--- a/avr.cmake
+++ b/avr.cmake
@@ -1,6 +1,6 @@
 ###| CMAKE Kiibohd Controller |###
 #
-# Jacob Alexander 2011-2013
+# Jacob Alexander 2011-2014
 # Due to this file's usefulness:
 #
 # Released into the Public Domain
@@ -37,8 +37,8 @@ set( SIZE    "avr-size"    )
 #| "atmega32u4"       # Teensy   2.0
 #| "at90usb646"       # Teensy++ 1.0
 #| "at90usb1286"      # Teensy++ 2.0
-#set( MCU "atmega32u4" )
-set( MCU "at90usb1286" )
+set( MCU "atmega32u4" )
+#set( MCU "at90usb1286" )
 
 message( STATUS "MCU Selected:" )
 message( "${MCU}" )
@@ -51,6 +51,15 @@ set( COMPILER_SRCS
 )
 
 
+#| CPU Type
+#| This is only informational for AVR microcontrollers
+#| The field can be determined by the microcontroller chip, but currently only one CPU type is used atm
+set( CPU "megaAVR" )
+
+message( STATUS "CPU Selected:" )
+message( "${CPU}" )
+
+
 #| USB Defines
 set( VENDOR_ID  "0x16C0" )
 set( PRODUCT_ID "0x047D" )
@@ -66,7 +75,7 @@ set( CSTANDARD "-std=gnu99" )
 
 #| Warning Options
 #|  -Wall...:     warning level
-set( WARN "-Wall -Wstrict-prototypes" )
+set( WARN "-Wall" )
 
 
 #| Tuning Options
@@ -75,7 +84,7 @@ set( WARN "-Wall -Wstrict-prototypes" )
 set( TUNING "-funsigned-char -funsigned-bitfields -ffunction-sections -fpack-struct -fshort-enums" )
 
 
-#| Optimization level, can be [0, 1, 2, 3, s]. 
+#| Optimization level, can be [0, 1, 2, 3, s].
 #|     0 = turn off optimization. s = optimize for size.
 #|     (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
 set( OPT "s" )