Adding module compatibility check to CMake build scripts.

- All modules have a default avr compatibilty right now (since that is what they were developed on)
- As modules get tested and added, arm support has to be turned on in the respective setup.cmake file
This commit is contained in:
Jacob Alexander 2013-01-30 18:13:49 -05:00
parent c8b4baf652
commit fc7998d605
26 changed files with 234 additions and 6 deletions

View file

@ -33,3 +33,12 @@ add_definitions(
-I${HEAD_DIR}/Debug/print
)
###
# Compiler Family Compatibility
#
set( DebugModuleCompatibility
arm
avr
)

View file

@ -32,3 +32,12 @@ add_file_dependencies( ../led/led.c ../led/led.h )
#
add_definitions( -I${HEAD_DIR}/Debug/off )
###
# Compiler Family Compatibility
#
set( DebugModuleCompatibility
arm
avr
)

View file

@ -17,3 +17,12 @@
# Module Specific Options
#
###
# Compiler Family Compatibility
#
set( DebugModuleCompatibility
arm
avr
)

View file

@ -50,12 +50,8 @@
*/
// Function Aliases
#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) // AVR
#define dPrint(c) usb_debug_putchar(c)
#elif defined(_mk20dx128_) // ARM
#define dPrint(c) usb_debug_putstr (c)
#endif
#define dPrintStr(c) usb_debug_putstr (c)
#define dPrint(c) usb_debug_putstr(c)
#define dPrintStr(c) usb_debug_putstr(c)
#define dPrintStrs(...) usb_debug_putstrs(__VA_ARGS__, "\0\0\0") // Convenience Variadic Macro
#define dPrintStrNL(c) dPrintStrs (c, NL) // Appends New Line Macro
#define dPrintStrsNL(...) usb_debug_putstrs(__VA_ARGS__, NL, "\0\0\0") // Appends New Line Macro

View file

@ -32,3 +32,12 @@ add_file_dependencies( ../led/print.c ../led/print.h )
#
add_definitions( -I${HEAD_DIR}/Debug/off )
###
# Compiler Family Compatibility
#
set( DebugModuleCompatibility
arm
avr
)