Preparing for Teensy 3 (ARM) integration, abstracting code hierarchy
- Abstracted USB Module - Abstracted compiler specific includes for Scan, Macro, Debug, and USB modules - Updated CMake build files to support changes - Added abstractions necessary to main.c as well as a compiler specific include file
This commit is contained in:
parent
b368b13240
commit
14158009b2
28 changed files with 323 additions and 700 deletions
|
@ -1,6 +1,6 @@
|
|||
###| CMake Kiibohd Controller USB Module |###
|
||||
#
|
||||
# Written by Jacob Alexander in 2011 for the Kiibohd Controller
|
||||
# Written by Jacob Alexander in 2011-2013 for the Kiibohd Controller
|
||||
#
|
||||
# Released into the Public Domain
|
||||
#
|
||||
|
@ -11,10 +11,27 @@
|
|||
# Module C files
|
||||
#
|
||||
|
||||
set( USB_SRCS
|
||||
usb_com.c
|
||||
usb_keyboard_debug.c
|
||||
)
|
||||
|
||||
#| 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
|
||||
)
|
||||
|
||||
endif ( ${COMPILER_FAMILY} MATCHES "avr" )
|
||||
|
||||
|
||||
###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue