2011-09-29 06:25:51 +00:00
|
|
|
###| CMake Kiibohd Controller USB Module |###
|
|
|
|
#
|
2013-01-26 20:05:28 +00:00
|
|
|
# Written by Jacob Alexander in 2011-2013 for the Kiibohd Controller
|
2011-09-29 06:25:51 +00:00
|
|
|
#
|
|
|
|
# Released into the Public Domain
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Module C files
|
|
|
|
#
|
|
|
|
|
2013-01-26 20:05:28 +00:00
|
|
|
|
|
|
|
#| AVR Compiler
|
|
|
|
if ( ${COMPILER_FAMILY} MATCHES "avr" )
|
|
|
|
|
|
|
|
set( USB_SRCS
|
|
|
|
usb_com.c
|
|
|
|
avr/usb_keyboard_debug.c
|
|
|
|
)
|
|
|
|
|
|
|
|
#| ARM Compiler
|
|
|
|
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
|
|
|
|
|
|
|
|
set( USB_SRCS
|
|
|
|
usb_com.c
|
|
|
|
arm/usb_desc.c
|
|
|
|
arm/usb_dev.c
|
|
|
|
arm/usb_keyboard.c
|
|
|
|
arm/usb_mem.c
|
2013-01-27 03:30:36 +00:00
|
|
|
arm/usb_serial.c
|
2013-01-26 20:05:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
endif ( ${COMPILER_FAMILY} MATCHES "avr" )
|
2011-09-29 06:25:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Module Specific Options
|
|
|
|
#
|
|
|
|
|
2013-01-30 23:13:49 +00:00
|
|
|
###
|
|
|
|
# Compiler Family Compatibility
|
|
|
|
#
|
|
|
|
set( USBModuleCompatibility
|
|
|
|
arm
|
|
|
|
avr
|
|
|
|
)
|
|
|
|
|