2011-09-29 06:25:51 +00:00
|
|
|
###| CMake Kiibohd Controller Scan Module |###
|
|
|
|
#
|
|
|
|
# Written by Jacob Alexander in 2011 for the Kiibohd Controller
|
|
|
|
#
|
|
|
|
# Released into the Public Domain
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2011-10-17 04:38:56 +00:00
|
|
|
###
|
|
|
|
# Warning, that this module is not meant to be built stand-alone
|
|
|
|
#
|
|
|
|
message( FATAL_ERROR
|
|
|
|
"The 'matrix' module is not a stand-alone module, and requires further setup.
|
|
|
|
See BudKeypad module for as an example module."
|
|
|
|
)
|
2011-09-29 06:25:51 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
# Module C files
|
|
|
|
#
|
|
|
|
|
|
|
|
set( SCAN_SRCS
|
2011-10-16 03:01:46 +00:00
|
|
|
matrix_scan.c
|
2011-09-29 06:25:51 +00:00
|
|
|
scan_loop.c
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
###
|
2011-09-29 22:30:24 +00:00
|
|
|
# Module Specific Options
|
2011-09-29 06:25:51 +00:00
|
|
|
#
|
2011-09-29 22:30:24 +00:00
|
|
|
add_definitions( -I${HEAD_DIR}/Keymap )
|
2011-09-29 06:25:51 +00:00
|
|
|
|
2011-10-16 03:01:46 +00:00
|
|
|
add_definitions(
|
2011-10-17 04:38:56 +00:00
|
|
|
#-DMODIFIER_MASK=
|
|
|
|
#-DKEYINDEX_MASK=
|
2011-10-16 03:01:46 +00:00
|
|
|
)
|
|
|
|
|
2013-01-30 23:13:49 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
# Compiler Family Compatibility
|
|
|
|
#
|
|
|
|
set( ScanModuleCompatibility
|
|
|
|
avr
|
|
|
|
)
|
|
|
|
|