2011-09-28 23:25:51 -07:00
|
|
|
###| CMake Kiibohd Controller Scan Module |###
|
|
|
|
#
|
|
|
|
# Written by Jacob Alexander in 2011 for the Kiibohd Controller
|
|
|
|
#
|
|
|
|
# Released into the Public Domain
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2011-10-16 21:38:56 -07: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-28 23:25:51 -07:00
|
|
|
|
|
|
|
###
|
|
|
|
# Module C files
|
|
|
|
#
|
|
|
|
|
|
|
|
set( SCAN_SRCS
|
2011-10-15 20:01:46 -07:00
|
|
|
matrix_scan.c
|
2011-09-28 23:25:51 -07:00
|
|
|
scan_loop.c
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
###
|
2011-09-29 15:30:24 -07:00
|
|
|
# Module Specific Options
|
2011-09-28 23:25:51 -07:00
|
|
|
#
|
2011-09-29 15:30:24 -07:00
|
|
|
add_definitions( -I${HEAD_DIR}/Keymap )
|
2011-09-28 23:25:51 -07:00
|
|
|
|
2011-10-15 20:01:46 -07:00
|
|
|
add_definitions(
|
2011-10-16 21:38:56 -07:00
|
|
|
#-DMODIFIER_MASK=
|
|
|
|
#-DKEYINDEX_MASK=
|
2011-10-15 20:01:46 -07:00
|
|
|
)
|
|
|
|
|