This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2014-06-27 07:53:20 +00:00
|
|
|
###| CMake Kiibohd Controller UART Output Module |###
|
|
|
|
#
|
2015-01-26 01:53:48 +00:00
|
|
|
# Written by Jacob Alexander in 2014-2015 for the Kiibohd Controller
|
2014-06-27 07:53:20 +00:00
|
|
|
#
|
|
|
|
# Released into the Public Domain
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Module C files
|
|
|
|
#
|
|
|
|
|
|
|
|
#| AVR Compiler
|
|
|
|
if ( ${COMPILER_FAMILY} MATCHES "avr" )
|
|
|
|
|
2015-01-26 01:53:48 +00:00
|
|
|
set ( Module_SRCS
|
2014-06-27 07:53:20 +00:00
|
|
|
output_com.c
|
|
|
|
avr/uart_serial.c
|
|
|
|
)
|
|
|
|
|
|
|
|
#| ARM Compiler
|
|
|
|
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )
|
|
|
|
|
2015-01-26 01:53:48 +00:00
|
|
|
set ( Module_SRCS
|
2014-06-27 07:53:20 +00:00
|
|
|
output_com.c
|
|
|
|
arm/uart_serial.c
|
|
|
|
)
|
|
|
|
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
2015-06-14 20:56:56 +00:00
|
|
|
###
|
|
|
|
# Includes
|
|
|
|
#
|
|
|
|
|
|
|
|
# Use pjrcUSB output_com.h
|
|
|
|
include_directories (
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../pjrcUSB
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2014-06-27 07:53:20 +00:00
|
|
|
###
|
|
|
|
# Compiler Family Compatibility
|
|
|
|
#
|
2015-01-26 01:53:48 +00:00
|
|
|
set( ModuleCompatibility
|
2014-06-27 07:53:20 +00:00
|
|
|
arm
|
|
|
|
# avr # TODO
|
|
|
|
)
|
|
|
|
|