view Output/uartOut/setup.cmake @ 410:8fa2619aa60e

Fix a handful of infinite loops that occur if you have more than 254 macros
author Kevin Frei <freik@fb.com>
date Sat, 02 Jan 2016 17:43:05 -0800
parents 66eccdd9ced5
children
line wrap: on
line source

###| CMake Kiibohd Controller UART Output Module |###
#
# Written by Jacob Alexander in 2014-2015 for the Kiibohd Controller
#
# Released into the Public Domain
#
###


###
# Module C files
#

#| AVR Compiler
if ( ${COMPILER_FAMILY} MATCHES "avr" )

	set ( Module_SRCS
		output_com.c
		avr/uart_serial.c
	)

#| ARM Compiler
elseif ( ${COMPILER_FAMILY} MATCHES "arm" )

	set ( Module_SRCS
		output_com.c
		arm/uart_serial.c
	)

endif ()


###
# Includes
#

# Use pjrcUSB output_com.h
include_directories (
	${CMAKE_CURRENT_LIST_DIR}/../pjrcUSB
)


###
# Compiler Family Compatibility
#
set( ModuleCompatibility
	arm
#	avr # TODO
)