kiibohd / controller

Kiibohd Controller
GNU General Public License v3.0
807 stars 270 forks source link

Compile Errors in usb_desc.c #145

Closed p-callaghan closed 8 years ago

p-callaghan commented 8 years ago

I just downloaded the new firmware and I am getting the following error on build:

Everything worked fine for the previous versions:

Scanning dependencies of target kiibohd.elf [ 4%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

               ^

../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

                ^

../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2

haata commented 8 years ago

Can you remove the build directory and show me the output of the cmake portion of the build? ( This might fix the problem too)

On Fri, Aug 19, 2016, 07:53 p-callaghan notifications@github.com wrote:

I just downloaded the new firmware and I am getting the following error on build:

Everything worked fine for the previous versions:

Scanning dependencies of target kiibohd.elf [ 4%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kiibohd/controller/issues/145, or mute the thread https://github.com/notifications/unsubscribe-auth/AABbqYC8d7n71hCa6OKfXp7UZjsViIoOks5qhcNpgaJpZM4JojUi .

p-callaghan commented 8 years ago

I wipe out the whole controller directory and pull down the controller and kll repo from scratch.

I tried it again with the same results.

Here is the entire build output.

-- Compiler Family: arm -- Compiler Selected: gcc -- Chip Selected: mk20dx256vlh7 -- Chip Family: mk20dx -- CPU Selected: cortex-m4 -- Compiler Source Files: Lib/mk20dx.c;Lib/delay.c -- Bootloader Type: dfu -- Detected Scan Module Source Files: Scan/ISSILed/led_scan.c;Scan/MatrixARM/matrix_scan.c;Scan/STLcd/lcd_scan.c;Scan/UARTConnect/connect_scan.c;Scan/Infinity_Ergodox/scan_loop.c -- Detected Macro Module Source Files: Macro/PartialMap/macro.c;Macro/PartialMap/result.c;Macro/PartialMap/trigger.c -- Detected Output Module Source Files: Output/pjrcUSB/output_com.c;Output/pjrcUSB/arm/usb_desc.c;Output/pjrcUSB/arm/usb_dev.c;Output/pjrcUSB/arm/usb_joystick.c;Output/pjrcUSB/arm/usb_keyboard.c;Output/pjrcUSB/arm/usb_mem.c;Output/pjrcUSB/arm/usb_mouse.c;Output/pjrcUSB/arm/usb_rawio.c;Output/pjrcUSB/arm/usb_serial.c -- Detected Debug Module Source Files: Debug/cli/cli.c;Debug/led/led.c;Debug/print/print.c -- Found Git: /usr/bin/git (found version "1.7.1") -- Found Ctags: /usr/bin/ctags (found version "5.8") -- Detected Layout Files: /ergodox/controller/Scan/ISSILed/capabilities.kll /ergodox/controller/Scan/MatrixARM/capabilities.kll /ergodox/controller/Scan/STLcd/capabilities.kll /ergodox/controller/Scan/UARTConnect/capabilities.kll /ergodox/controller/Macro/PartialMap/capabilities.kll /ergodox/controller/Output/pjrcUSB/capabilities.kll /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll /ergodox/controller/kll/layouts/callaghp.kll /ergodox/controller/kll/layouts/lcdFuncMap.kll /ergodox/controller/kll/layouts/callaghp1.kll /ergodox/controller/kll/layouts/callaghp2.kll -- Found DFU_SUFFIX: /usr/bin/dfu-suffix (found version "0.7(C) 2011-2012 Stefan SchmidtThis program is Free Software and has ABSOLUTELY NO WARRANTYPlease report bugs to dfu-util@lists.gnumonks.org") -- Configuring done -- Generating done -- Build files have been written to: /ergodox/controller/Keyboards/ICED-L.gcc [ 4%] Generating KLL Layout Scanning dependencies of target kiibohd.elf [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/main.c.o [ 12%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.o [ 16%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/delay.c.o [ 20%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/ISSILed/led_scan.c.o [ 24%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.o [ 28%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/STLcd/lcd_scan.c.o [ 32%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/UARTConnect/connect_scan.c.o [ 36%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/Infinity_Ergodox/scan_loop.c.o [ 40%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.o [ 44%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.o [ 48%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.o [ 52%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 56%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

               ^

../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

                ^

../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2 make: *\ [all] Error 2 Error in make. Exiting...

From: Jacob Alexander [mailto:notifications@github.com] Sent: Friday, August 19, 2016 8:58 AM To: kiibohd/controller Cc: p-callaghan; Author Subject: Re: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

Can you remove the build directory and show me the output of the cmake portion of the build? ( This might fix the problem too)

On Fri, Aug 19, 2016, 07:53 p-callaghan notifications@github.com<mailto:notifications@github.com> wrote:

I just downloaded the new firmware and I am getting the following error on build:

Everything worked fine for the previous versions:

Scanning dependencies of target kiibohd.elf [ 4%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kiibohd/controller/issues/145, or mute the thread https://github.com/notifications/unsubscribe-auth/AABbqYC8d7n71hCa6OKfXp7UZjsViIoOks5qhcNpgaJpZM4JojUi .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kiibohd/controller/issues/145#issuecomment-241041709, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQRzYvKYYYPxWZQjBBYp8YyfjsNvnHVYks5qhcRzgaJpZM4JojUi.


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


haata commented 8 years ago

Hmm. Looks like some combo of build tools and OS I didn't test recently... (I rewrote the compiler selection code recently)

Which OS? (uname -a) cmake --version arm-none-eabi-gcc --version

On Fri, Aug 19, 2016 at 8:24 AM p-callaghan notifications@github.com wrote:

I wipe out the whole controller directory and pull down the controller and kll repo from scratch.

I tried it again with the same results.

Here is the entire build output.

-- Compiler Family: arm -- Compiler Selected: gcc -- Chip Selected: mk20dx256vlh7 -- Chip Family: mk20dx -- CPU Selected: cortex-m4 -- Compiler Source Files: Lib/mk20dx.c;Lib/delay.c -- Bootloader Type: dfu -- Detected Scan Module Source Files: Scan/ISSILed/led_scan.c;Scan/MatrixARM/matrix_scan.c;Scan/STLcd/lcd_scan.c;Scan/UARTConnect/connect_scan.c;Scan/Infinity_Ergodox/scan_loop.c

-- Detected Macro Module Source Files: Macro/PartialMap/macro.c;Macro/PartialMap/result.c;Macro/PartialMap/trigger.c

-- Detected Output Module Source Files: Output/pjrcUSB/output_com.c;Output/pjrcUSB/arm/usb_desc.c;Output/pjrcUSB/arm/usb_dev.c;Output/pjrcUSB/arm/usb_joystick.c;Output/pjrcUSB/arm/usb_keyboard.c;Output/pjrcUSB/arm/usb_mem.c;Output/pjrcUSB/arm/usb_mouse.c;Output/pjrcUSB/arm/usb_rawio.c;Output/pjrcUSB/arm/usb_serial.c

-- Detected Debug Module Source Files: Debug/cli/cli.c;Debug/led/led.c;Debug/print/print.c -- Found Git: /usr/bin/git (found version "1.7.1") -- Found Ctags: /usr/bin/ctags (found version "5.8") -- Detected Layout Files: /ergodox/controller/Scan/ISSILed/capabilities.kll /ergodox/controller/Scan/MatrixARM/capabilities.kll /ergodox/controller/Scan/STLcd/capabilities.kll /ergodox/controller/Scan/UARTConnect/capabilities.kll /ergodox/controller/Macro/PartialMap/capabilities.kll /ergodox/controller/Output/pjrcUSB/capabilities.kll /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll /ergodox/controller/kll/layouts/callaghp.kll /ergodox/controller/kll/layouts/lcdFuncMap.kll /ergodox/controller/kll/layouts/callaghp1.kll /ergodox/controller/kll/layouts/callaghp2.kll -- Found DFU_SUFFIX: /usr/bin/dfu-suffix (found version "0.7(C) 2011-2012 Stefan SchmidtThis program is Free Software and has ABSOLUTELY NO WARRANTYPlease report bugs to dfu-util@lists.gnumonks.org") -- Configuring done -- Generating done -- Build files have been written to: /ergodox/controller/Keyboards/ICED-L.gcc [ 4%] Generating KLL Layout Scanning dependencies of target kiibohd.elf [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/main.c.o [ 12%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.o [ 16%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/delay.c.o [ 20%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/ISSILed/led_scan.c.o [ 24%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.o [ 28%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/STLcd/lcd_scan.c.o [ 32%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/UARTConnect/connect_scan.c.o [ 36%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/Infinity_Ergodox/scan_loop.c.o [ 40%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.o [ 44%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.o [ 48%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.o [ 52%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 56%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2 make: *\ [all] Error 2 Error in make. Exiting...

From: Jacob Alexander [mailto:notifications@github.com] Sent: Friday, August 19, 2016 8:58 AM To: kiibohd/controller Cc: p-callaghan; Author Subject: Re: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

Can you remove the build directory and show me the output of the cmake portion of the build? ( This might fix the problem too)

On Fri, Aug 19, 2016, 07:53 p-callaghan <notifications@github.com<mailto: notifications@github.com>> wrote:

I just downloaded the new firmware and I am getting the following error on build:

Everything worked fine for the previous versions:

Scanning dependencies of target kiibohd.elf [ 4%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

^ ../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: \ [CMakeFiles/kiibohd.elf.dir/all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kiibohd/controller/issues/145, or mute the thread < https://github.com/notifications/unsubscribe-auth/AABbqYC8d7n71hCa6OKfXp7UZjsViIoOks5qhcNpgaJpZM4JojUi>

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/kiibohd/controller/issues/145#issuecomment-241041709>, or mute the thread< https://github.com/notifications/unsubscribe-auth/AQRzYvKYYYPxWZQjBBYp8YyfjsNvnHVYks5qhcRzgaJpZM4JojUi>.


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kiibohd/controller/issues/145#issuecomment-241048969, or mute the thread https://github.com/notifications/unsubscribe-auth/AABbqfcaaGjERGAg0EFwL5tcDw-iz62Wks5qhcqhgaJpZM4JojUi .

p-callaghan commented 8 years ago

Here is the info:

[root@ergodox /]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.6 (Santiago)

[root@ergodox /]# uname -a Linux ergodox 2.6.32-504.el6.x86_64 #1 SMP Tue Oct 14 01:47:47 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@ergodox /]# cmake --version cmake version 2.8.12.2

[root@ergodox /]# arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.2.1 20151202 (release) [ARM/embedded-5-branch revision 231848]


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


p-callaghan commented 8 years ago

I will try upgrading some of the software as well, and let you know if it makes a difference.

I see there is a new gcc-arm-non-eabi package available version 5.4.

Thanks, Peter


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


alexisorg1 commented 8 years ago

I am getting the exact same error on multiple different operating systems/builds. At this point I am convinced that I must be doing something wrong.

arm
— Compiler Selected:
gcc
— Chip Selected:
mk20dx128vlf5
— Chip Family:
mk20dx
— CPU Selected:
cortex-m4
— Compiler Source Files:
Lib/mk20dx.c;Lib/delay.c
— Bootloader Type:
dfu
— The C compiler identification is GNU 6.1.1
— Check for working C compiler: /usr/bin/arm-none-eabi-gcc
— Check for working C compiler: /usr/bin/arm-none-eabi-gcc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Detecting C compile features
— Detecting C compile features – done
— Detected Scan Module Source Files:
Scan/MatrixARM/matrix_scan.c;Scan/Infinity_60%/scan_loop.c
— Detected Macro Module Source Files:
Macro/PartialMap/macro.c;Macro/PartialMap/result.c;Macro/PartialMap/trigger.c
— Detected Output Module Source Files:
Output/pjrcUSB/output_com.c;Output/pjrcUSB/arm/usb_desc.c;Output/pjrcUSB/arm/usb_dev.c;Output/pjrcUSB/arm/usb_joystick.c;Output/pjrcUSB/arm/usb_keyboard.c;Output/pjrcUSB/arm/usb_mem.c;Output/pjrcUSB/arm/usb_mouse.c;Output/pjrcUSB/arm/usb_rawio.c;Output/pjrcUSB/arm/usb_serial.c
— Detected Debug Module Source Files:
Debug/cli/cli.c;Debug/led/led.c;Debug/print/print.c
— Found Git: /usr/bin/git (found version “2.9.3”)
— Found Ctags: /usr/bin/ctags (found version “5.8”)
— Detected Layout Files:
/home/alexis/Desktop/Test/Scan/MatrixARM/capabilities.kll
/home/alexis/Desktop/Test/Macro/PartialMap/capabilities.kll
/home/alexis/Desktop/Test/Output/pjrcUSB/capabilities.kll
/home/alexis/Desktop/Test/Scan/Infinity_60%/scancode_map.kll
/home/alexis/Desktop/Test/kll/layouts/md1Overlay.kll
/home/alexis/Desktop/Test/kll/layouts/stdFuncMap.kll
/home/alexis/Desktop/Test/kll/layouts/hhkbpro2.kll
— Found DFU_SUFFIX: /usr/bin/dfu-suffix (found version “0.9”)
— Configuring done
— Generating done
— Build files have been written to: /home/alexis/Desktop/Test/Keyboards/IC60.gcc
[ 4%] Generating KLL Layout
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘–‘ to separate paths from revisions, like this:
‘git <command> [<revision>…] — [<file>…]’
Scanning dependencies of target kiibohd.elf
[ 8%] Building C object CMakeFiles/kiibohd.elf.dir/main.c.obj
[ 13%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.obj
[ 17%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/delay.c.obj
[ 21%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.obj
[ 26%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/Infinity_60%/scan_loop.c.obj
[ 30%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.obj
[ 34%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.obj
[ 39%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.obj
[ 43%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.obj
[ 47%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.obj
/home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ‘)’ token
#define LSB(n) ((n) & 255)
^
/home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro ‘LSB’
LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice
^~~
/home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ‘)’ token
#define MSB(n) (((n) >> 8) & 255)
^
/home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro ‘MSB’
LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice
^~~
make[2]: *** [CMakeFiles/kiibohd.elf.dir/build.make:292: CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/kiibohd.elf.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Error in make. Exiting…

Can send cygwin/ ubuntu log if necessary.

haata commented 8 years ago

Have you tried removing the IC60.gcc build directory and trying again?

On Wed, Aug 24, 2016 at 3:32 PM alexisorg1 notifications@github.com wrote:

I am getting the exact same error on multiple different operating systems/builds. At this point I am convinced that I must be doing something wrong.

arm — Compiler Selected: gcc — Chip Selected: mk20dx128vlf5 — Chip Family: mk20dx — CPU Selected: cortex-m4 — Compiler Source Files: Lib/mk20dx.c;Lib/delay.c — Bootloader Type: dfu — The C compiler identification is GNU 6.1.1 — Check for working C compiler: /usr/bin/arm-none-eabi-gcc — Check for working C compiler: /usr/bin/arm-none-eabi-gcc — works — Detecting C compiler ABI info — Detecting C compiler ABI info – done — Detecting C compile features — Detecting C compile features – done — Detected Scan Module Source Files: Scan/MatrixARM/matrix_scan.c;Scan/Infinity_60%/scan_loop.c — Detected Macro Module Source Files: Macro/PartialMap/macro.c;Macro/PartialMap/result.c;Macro/PartialMap/trigger.c — Detected Output Module Source Files: Output/pjrcUSB/output_com.c;Output/pjrcUSB/arm/usb_desc.c;Output/pjrcUSB/arm/usb_dev.c;Output/pjrcUSB/arm/usb_joystick.c;Output/pjrcUSB/arm/usb_keyboard.c;Output/pjrcUSB/arm/usb_mem.c;Output/pjrcUSB/arm/usb_mouse.c;Output/pjrcUSB/arm/usb_rawio.c;Output/pjrcUSB/arm/usb_serial.c — Detected Debug Module Source Files: Debug/cli/cli.c;Debug/led/led.c;Debug/print/print.c — Found Git: /usr/bin/git (found version “2.9.3”) — Found Ctags: /usr/bin/ctags (found version “5.8”) — Detected Layout Files: /home/alexis/Desktop/Test/Scan/MatrixARM/capabilities.kll /home/alexis/Desktop/Test/Macro/PartialMap/capabilities.kll /home/alexis/Desktop/Test/Output/pjrcUSB/capabilities.kll /home/alexis/Desktop/Test/Scan/Infinity_60%/scancode_map.kll /home/alexis/Desktop/Test/kll/layouts/md1Overlay.kll /home/alexis/Desktop/Test/kll/layouts/stdFuncMap.kll /home/alexis/Desktop/Test/kll/layouts/hhkbpro2.kll — Found DFU_SUFFIX: /usr/bin/dfu-suffix (found version “0.9”) — Configuring done — Generating done — Build files have been written to: /home/alexis/Desktop/Test/Keyboards/IC60.gcc [ 4%] Generating KLL Layout fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree. Use ‘–‘ to separate paths from revisions, like this: ‘git […] — […]’ Scanning dependencies of target kiibohd.elf [ 8%] Building C object CMakeFiles/kiibohd.elf.dir/main.c.obj [ 13%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.obj [ 17%] Building C object CMakeFiles/kiibohd.elf.dir/Lib/delay.c.obj [ 21%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.obj [ 26%] Building C object CMakeFiles/kiibohd.elf.dir/Scan/Infinity_60%/scan_loop.c.obj [ 30%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.obj [ 34%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.obj [ 39%] Building C object CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.obj [ 43%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.obj [ 47%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.obj /home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ‘)’ token

define LSB(n) ((n) & 255)

^ /home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro ‘LSB’ LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^~~ /home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ‘)’ token

define MSB(n) (((n) >> 8) & 255)

^ /home/alexis/Desktop/Test/Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro ‘MSB’ LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^~~ make[2]: * [CMakeFiles/kiibohd.elf.dir/build.make:292: CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.obj] Error 1 make[1]: * [CMakeFiles/Makefile2:100: CMakeFiles/kiibohd.elf.dir/all] Error 2 make: *\ [Makefile:84: all] Error 2 Error in make. Exiting…

Can send cygwin/ ubuntu log if necessary.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kiibohd/controller/issues/145#issuecomment-242229161, or mute the thread https://github.com/notifications/unsubscribe-auth/AABbqdygZ74jKfPXk0jxCGLMQoYulU2wks5qjMZ0gaJpZM4JojUi .

alexisorg1 commented 8 years ago

Yes, just now once again and to no avail. Perhaps I should try with older versions of the software or maybe change the build directory. All this aimless trying and testing has completely taken up my time in the last few days though. I will probably be waiting for a solution or explanation as I am hopelessly inexperienced. Also, compiling with the VM for some reason bluescreens my pc. Although funny, it is quite problematic that every attempt of mine fails. Thanks for the reply

p-callaghan commented 8 years ago

I have upgraded the OS as well as the arm-compiler, with the same result.

[root@ergodox /ergodox]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago)

[root@ergodox /ergodox]# uname -a Linux ergodox 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 10:42:14 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@ergodox /usr/local]# arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]

I also tried to use an older compiler: gcc-arm-none-eabi-4_9-2015q3 with the same issue. [root@ergodox /ergodox]# arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977]

======== COMPILE OUTPUT ================= [ 56%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

               ^

../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

                ^

../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2 make: *\ [all] Error 2 Error in make. Exiting...

haata commented 8 years ago

Hmm.

Which version of Python3 do you have?

Also, can you post your generatedKeymap.h and kll_defs.h files? They should be in the build directory. My guess is that something is going on with the kll compiler that's affecting the C macros.

p-callaghan commented 8 years ago

[root@ergodox /ergodox]# python3 --version Python 3.5.1

generatedKeymap.h and kll_defs.h files attached.

From: Jacob Alexander [mailto:notifications@github.com] Sent: Tuesday, August 30, 2016 4:36 PM To: kiibohd/controller Cc: p-callaghan; Author Subject: Re: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

Hmm.

Which version of Python3 do you have?

Also, can you post your generatedKeymap.h and kll_defs.h files? They should be in the build directory. My guess is that something is going on with the kll compiler that's affecting the C macros.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kiibohd/controller/issues/145#issuecomment-243603506, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQRzYuk4GfycdTi4iAKSGHqfeQa-ejCsks5qlLBNgaJpZM4JojUi.


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


/* Copyright (C) 2014-2016 by Jacob Alexander *

// This file was generated by the kll compiler, DO NOT EDIT. // Generation Date: 2016-08-30 // KLL Backend: kiibohd // KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f // KLL Git Changes: None // Compiler arguments: // ../../kll/kll.py // /ergodox/controller/Scan/ISSILed/capabilities.kll // /ergodox/controller/Scan/MatrixARM/capabilities.kll // /ergodox/controller/Scan/STLcd/capabilities.kll // /ergodox/controller/Scan/UARTConnect/capabilities.kll // /ergodox/controller/Macro/PartialMap/capabilities.kll // /ergodox/controller/Output/pjrcUSB/capabilities.kll // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // -d // /ergodox/controller/kll/layouts/callaghp.kll // /ergodox/controller/kll/layouts/lcdFuncMap.kll // -p // /ergodox/controller/kll/layouts/callaghp1.kll // -p // /ergodox/controller/kll/layouts/callaghp2.kll // --backend // kiibohd // --templates // /ergodox/controller/kll/templates/kiibohdKeymap.h // /ergodox/controller/kll/templates/kiibohdDefs.h // --outputs // generatedKeymap.h // kll_defs.h // // - Base Layer - // ISSILedCapabilities // /ergodox/controller/Scan/ISSILed/capabilities.kll // MatrixArmCapabilities // /ergodox/controller/Scan/MatrixARM/capabilities.kll // STLcdCapabilities // /ergodox/controller/Scan/STLcd/capabilities.kll // UARTConnectCapabilities // /ergodox/controller/Scan/UARTConnect/capabilities.kll // PartialMapCapabilities // /ergodox/controller/Macro/PartialMap/capabilities.kll // pjrcUSBCapabilities // /ergodox/controller/Output/pjrcUSB/capabilities.kll // MDErgo1 // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // MDErgo1LeftHand // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // MDErgo1Slave1 // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // MDErgo1RightHand // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // - Default Layer - // MDErgo1 // /ergodox/controller/kll/layouts/callaghp.kll // lcdFuncMap // /ergodox/controller/kll/layouts/lcdFuncMap.kll // - Partial Layers - // Layer 1 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp1.kll // Layer 2 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp2.kll

pragma once

// ----- Includes -----

// KLL Include

include

// ----- Capabilities -----

// Capability function declarations void LCD_layerStackExact_capability( uint8_t state, uint8_t stateType, uint8_t args ); void LCD_layerStack_capability( uint8_t state, uint8_t stateType, uint8_t args ); void LED_control_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerLatch_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerLock_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerRotate_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerShift_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerState_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_flashMode_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_kbdProtocolBoot_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_kbdProtocolNKRO_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_toggleKbdProtocol_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_usbMouse_capability( uint8_t state, uint8_t stateType, uint8_t *args );

// Indexed Capabilities Table const Capability CapabilitiesList[] = { { LCD_layerStackExact_capability, 9 }, { LCD_layerStack_capability, 0 }, { LED_control_capability, 4 }, { Macro_layerLatch_capability, 2 }, { Macro_layerLock_capability, 2 }, { Macro_layerRotate_capability, 1 }, { Macro_layerShift_capability, 2 }, { Macro_layerState_capability, 3 }, { Output_consCtrlSend_capability, 2 }, { Output_flashMode_capability, 0 }, { Output_kbdProtocolBoot_capability, 0 }, { Output_kbdProtocolNKRO_capability, 0 }, { Output_noneSend_capability, 0 }, { Output_sysCtrlSend_capability, 1 }, { Output_toggleKbdProtocol_capability, 0 }, { Output_usbCodeSend_capability, 1 }, { Output_usbMouse_capability, 6 }, };

// -- Result Macros

// Result Macro Guides Guide_RM( 0 ) = { 1, 15, KEY_2, 0 }; Guide_RM( 1 ) = { 2, 4, 2, 0, 1, 0 }; Guide_RM( 2 ) = { 1, 15, KEY_F, 0 }; Guide_RM( 3 ) = { 1, 15, KEY_SEMICOLON, 0 }; Guide_RM( 4 ) = { 2, 15, KEY_LSHIFT, 15, KEY_BACKSLASH, 0 }; Guide_RM( 5 ) = { 1, 15, KEY_J, 0 }; Guide_RM( 6 ) = { 1, 15, KEY_ESC, 0 }; Guide_RM( 7 ) = { 1, 15, KEY_QUOTE, 0 }; Guide_RM( 8 ) = { 1, 15, KEY_EQUAL, 0 }; Guide_RM( 9 ) = { 1, 15, KEY_PRINTSCREEN, 0 }; Guide_RM( 10 ) = { 2, 15, KEY_LCTRL, 15, KEY_RIGHT_BRACKET, 0 }; Guide_RM( 11 ) = { 1, 15, KEY_K, 0 }; Guide_RM( 12 ) = { 1, 15, KEY_BACKSPACE, 0 }; Guide_RM( 13 ) = { 1, 15, KEY_DOWN, 0 }; Guide_RM( 14 ) = { 1, 15, KEY_5, 0 }; Guide_RM( 15 ) = { 1, 15, KEY_BACKSLASH, 0 }; Guide_RM( 16 ) = { 1, 15, KEY_D, 0 }; Guide_RM( 17 ) = { 1, 15, KEY_UP, 0 }; Guide_RM( 18 ) = { 1, 15, KEY_P, 0 }; Guide_RM( 19 ) = { 1, 15, KEY_RALT, 0 }; Guide_RM( 20 ) = { 1, 15, KEY_TAB, 0 }; Guide_RM( 21 ) = { 1, 15, KEY_SPACE, 0 }; Guide_RM( 22 ) = { 1, 15, KEY_U, 0 }; Guide_RM( 23 ) = { 1, 15, KEY_S, 0 }; Guide_RM( 24 ) = { 1, 15, KEY_RIGHT_BRACKET, 0 }; Guide_RM( 25 ) = { 1, 15, KEY_G, 0 }; Guide_RM( 26 ) = { 2, 4, 1, 0, 1, 0 }; Guide_RM( 27 ) = { 1, 15, KEY_RSHIFT, 0 }; Guide_RM( 28 ) = { 1, 15, KEY_H, 0 }; Guide_RM( 29 ) = { 1, 15, KEY_HOME, 0 }; Guide_RM( 30 ) = { 1, 15, KEY_COMMA, 0 }; Guide_RM( 31 ) = { 1, 15, KEY_E, 0 }; Guide_RM( 32 ) = { 1, 15, KEY_END, 0 }; Guide_RM( 33 ) = { 1, 15, KEY_ENTER, 0 }; Guide_RM( 34 ) = { 2, 6, 2, 0, 1, 0 }; Guide_RM( 35 ) = { 1, 15, KEY_I, 0 }; Guide_RM( 36 ) = { 1, 15, KEY_W, 0 }; Guide_RM( 37 ) = { 1, 15, KEY_LEFT_BRACKET, 0 }; Guide_RM( 38 ) = { 1, 15, KEY_O, 0 }; Guide_RM( 39 ) = { 1, 15, KEY_X, 0 }; Guide_RM( 40 ) = { 1, 15, KEY_Q, 0 }; Guide_RM( 41 ) = { 1, 15, KEY_Y, 0 }; Guide_RM( 42 ) = { 1, 15, KEY_B, 0 }; Guide_RM( 43 ) = { 1, 15, KEY_PERIOD, 0 }; Guide_RM( 44 ) = { 1, 15, KEY_Z, 0 }; Guide_RM( 45 ) = { 1, 15, KEY_N, 0 }; Guide_RM( 46 ) = { 1, 15, KEY_T, 0 }; Guide_RM( 47 ) = { 1, 15, KEY_SLASH, 0 }; Guide_RM( 48 ) = { 1, 15, KEY_9, 0 }; Guide_RM( 49 ) = { 1, 15, KEY_LSHIFT, 0 }; Guide_RM( 50 ) = { 1, 15, KEY_1, 0 }; Guide_RM( 51 ) = { 1, 15, KEY_M, 0 }; Guide_RM( 52 ) = { 1, 15, KEY_6, 0 }; Guide_RM( 53 ) = { 1, 15, KEY_R, 0 }; Guide_RM( 54 ) = { 1, 15, KEY_0, 0 }; Guide_RM( 55 ) = { 1, 15, KEY_BACKTICK, 0 }; Guide_RM( 56 ) = { 1, 15, KEY_V, 0 }; Guide_RM( 57 ) = { 1, 15, KEY_PAGE_UP, 0 }; Guide_RM( 58 ) = { 1, 15, KEY_MINUS, 0 }; Guide_RM( 59 ) = { 1, 15, KEY_LGUI, 0 }; Guide_RM( 60 ) = { 1, 15, KEY_L, 0 }; Guide_RM( 61 ) = { 1, 15, KEY_C, 0 }; Guide_RM( 62 ) = { 1, 15, KEY_4, 0 }; Guide_RM( 63 ) = { 1, 15, KEY_PAGE_DOWN, 0 }; Guide_RM( 64 ) = { 2, 6, 1, 0, 1, 0 }; Guide_RM( 65 ) = { 1, 15, KEY_7, 0 }; Guide_RM( 66 ) = { 1, 15, KEY_RIGHT, 0 }; Guide_RM( 67 ) = { 1, 15, KEY_3, 0 }; Guide_RM( 68 ) = { 1, 15, KEY_LCTRL, 0 }; Guide_RM( 69 ) = { 1, 15, KEY_LEFT, 0 }; Guide_RM( 70 ) = { 1, 15, KEY_8, 0 }; Guide_RM( 71 ) = { 1, 15, KEY_A, 0 }; Guide_RM( 72 ) = { 1, 15, KEY_DELETE, 0 }; Guide_RM( 73 ) = { 1, 15, KEY_F2, 0 }; Guide_RM( 74 ) = { 1, 15, KEY_F12, 0 }; Guide_RM( 75 ) = { 1, 15, KEY_F11, 0 }; Guide_RM( 76 ) = { 2, 15, KEY_LSHIFT, 15, KEY_QUOTE, 0 }; Guide_RM( 77 ) = { 1, 15, KEY_F5, 0 }; Guide_RM( 78 ) = { 2, 15, KEY_LSHIFT, 15, KEY_0, 0 }; Guide_RM( 79 ) = { 2, 15, KEY_LCTRL, 15, KEY_RIGHT, 0 }; Guide_RM( 80 ) = { 2, 15, KEY_LGUI, 15, KEY_E, 0 }; Guide_RM( 81 ) = { 2, 15, KEY_LSHIFT, 15, KEY_9, 0 }; Guide_RM( 82 ) = { 1, 15, KEY_F9, 0 }; Guide_RM( 83 ) = { 1, 15, KEY_F1, 0 }; Guide_RM( 84 ) = { 2, 15, KEY_LCTRL, 15, KEY_LEFT, 0 }; Guide_RM( 85 ) = { 1, 15, KEY_F6, 0 }; Guide_RM( 86 ) = { 2, 15, KEY_LGUI, 15, KEY_R, 0 }; Guide_RM( 87 ) = { 1, 15, KEY_F10, 0 }; Guide_RM( 88 ) = { 1, 16, 2, 0, 0, 0, 0, 0, 0 }; Guide_RM( 89 ) = { 1, 15, KEY_F4, 0 }; Guide_RM( 90 ) = { 1, 15, KEY_F7, 0 }; Guide_RM( 91 ) = { 1, 15, KEY_F3, 0 }; Guide_RM( 92 ) = { 1, 15, KEY_F8, 0 }; Guide_RM( 93 ) = { 3, 15, KEY_LCTRL, 15, KEY_LALT, 15, KEY_DELETE, 0 }; Guide_RM( 94 ) = { 1, 15, KEYPAD_PLUS, 0 }; Guide_RM( 95 ) = { 1, 15, KEYPAD_4, 0 }; Guide_RM( 96 ) = { 1, 9, 0 }; Guide_RM( 97 ) = { 1, 15, KEYPAD_5, 0 }; Guide_RM( 98 ) = { 1, 15, KEYPAD_PERIOD, 0 }; Guide_RM( 99 ) = { 1, 15, KEYPAD_7, 0 }; Guide_RM( 100 ) = { 2, 15, KEY_LSHIFT, 15, KEY_PERIOD, 0 }; Guide_RM( 101 ) = { 1, 15, KEYPAD_2, 0 }; Guide_RM( 102 ) = { 1, 2, 3, 15, 0, 0, 0 }; Guide_RM( 103 ) = { 1, 15, KEYPAD_8, 0 }; Guide_RM( 104 ) = { 2, 15, KEY_LSHIFT, 15, KEY_COMMA, 0 }; Guide_RM( 105 ) = { 1, 15, KEYPAD_9, 0 }; Guide_RM( 106 ) = { 1, 15, KEYPAD_3, 0 }; Guide_RM( 107 ) = { 1, 15, KEYPAD_ASTERISK, 0 }; Guide_RM( 108 ) = { 1, 15, KEYPAD_1, 0 }; Guide_RM( 109 ) = { 1, 15, KEYPAD_MINUS, 0 }; Guide_RM( 110 ) = { 1, 2, 4, 15, 0, 0, 0 }; Guide_RM( 111 ) = { 1, 15, KEYPAD_6, 0 }; Guide_RM( 112 ) = { 1, 2, 5, 0, 0, 0, 0 }; Guide_RM( 113 ) = { 1, 15, KEY_NUM_LOCK, 0 }; Guide_RM( 114 ) = { 1, 15, KEYPAD_0, 0 }; Guide_RM( 115 ) = { 1, 15, KEYPAD_SLASH, 0 };

// -- Result Macro List

// Indexed Table of Result Macros const ResultMacro ResultMacroList[] = { Define_RM( 0 ), Define_RM( 1 ), Define_RM( 2 ), Define_RM( 3 ), Define_RM( 4 ), Define_RM( 5 ), Define_RM( 6 ), Define_RM( 7 ), Define_RM( 8 ), Define_RM( 9 ), Define_RM( 10 ), Define_RM( 11 ), Define_RM( 12 ), Define_RM( 13 ), Define_RM( 14 ), Define_RM( 15 ), Define_RM( 16 ), Define_RM( 17 ), Define_RM( 18 ), Define_RM( 19 ), Define_RM( 20 ), Define_RM( 21 ), Define_RM( 22 ), Define_RM( 23 ), Define_RM( 24 ), Define_RM( 25 ), Define_RM( 26 ), Define_RM( 27 ), Define_RM( 28 ), Define_RM( 29 ), Define_RM( 30 ), Define_RM( 31 ), Define_RM( 32 ), Define_RM( 33 ), Define_RM( 34 ), Define_RM( 35 ), Define_RM( 36 ), Define_RM( 37 ), Define_RM( 38 ), Define_RM( 39 ), Define_RM( 40 ), Define_RM( 41 ), Define_RM( 42 ), Define_RM( 43 ), Define_RM( 44 ), Define_RM( 45 ), Define_RM( 46 ), Define_RM( 47 ), Define_RM( 48 ), Define_RM( 49 ), Define_RM( 50 ), Define_RM( 51 ), Define_RM( 52 ), Define_RM( 53 ), Define_RM( 54 ), Define_RM( 55 ), Define_RM( 56 ), Define_RM( 57 ), Define_RM( 58 ), Define_RM( 59 ), Define_RM( 60 ), Define_RM( 61 ), Define_RM( 62 ), Define_RM( 63 ), Define_RM( 64 ), Define_RM( 65 ), Define_RM( 66 ), Define_RM( 67 ), Define_RM( 68 ), Define_RM( 69 ), Define_RM( 70 ), Define_RM( 71 ), Define_RM( 72 ), Define_RM( 73 ), Define_RM( 74 ), Define_RM( 75 ), Define_RM( 76 ), Define_RM( 77 ), Define_RM( 78 ), Define_RM( 79 ), Define_RM( 80 ), Define_RM( 81 ), Define_RM( 82 ), Define_RM( 83 ), Define_RM( 84 ), Define_RM( 85 ), Define_RM( 86 ), Define_RM( 87 ), Define_RM( 88 ), Define_RM( 89 ), Define_RM( 90 ), Define_RM( 91 ), Define_RM( 92 ), Define_RM( 93 ), Define_RM( 94 ), Define_RM( 95 ), Define_RM( 96 ), Define_RM( 97 ), Define_RM( 98 ), Define_RM( 99 ), Define_RM( 100 ), Define_RM( 101 ), Define_RM( 102 ), Define_RM( 103 ), Define_RM( 104 ), Define_RM( 105 ), Define_RM( 106 ), Define_RM( 107 ), Define_RM( 108 ), Define_RM( 109 ), Define_RM( 110 ), Define_RM( 111 ), Define_RM( 112 ), Define_RM( 113 ), Define_RM( 114 ), Define_RM( 115 ), };

// -- Trigger Macro Record

// Keeps a record/state of each result macro ResultMacroRecord ResultMacroRecordList[ ResultMacroNum ];

// -- Trigger Macros

// Trigger Macro Guides Guide_TM( 0 ) = { 1, 0x00, 0x01, 0x06, 0 }; Guide_TM( 1 ) = { 1, 0x00, 0x01, 0x2F, 0 }; Guide_TM( 2 ) = { 1, 0x00, 0x01, 0x16, 0 }; Guide_TM( 3 ) = { 1, 0x00, 0x01, 0x46, 0 }; Guide_TM( 4 ) = { 1, 0x00, 0x01, 0x1A, 0 }; Guide_TM( 5 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 6 ) = { 1, 0x00, 0x01, 0x02, 0 }; Guide_TM( 7 ) = { 1, 0x00, 0x01, 0x47, 0 }; Guide_TM( 8 ) = { 1, 0x00, 0x01, 0x29, 0 }; Guide_TM( 9 ) = { 1, 0x00, 0x01, 0x1B, 0 }; Guide_TM( 10 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x59, 0 }; Guide_TM( 11 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 12 ) = { 1, 0x00, 0x01, 0x26, 0 }; Guide_TM( 13 ) = { 1, 0x00, 0x01, 0x56, 0 }; Guide_TM( 14 ) = { 1, 0x00, 0x01, 0x03, 0 }; Guide_TM( 15 ) = { 1, 0x00, 0x01, 0x2A, 0 }; Guide_TM( 16 ) = { 1, 0x00, 0x01, 0x53, 0 }; Guide_TM( 17 ) = { 1, 0x00, 0x01, 0x17, 0 }; Guide_TM( 18 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 19 ) = { 1, 0x00, 0x01, 0x3D, 0 }; Guide_TM( 20 ) = { 1, 0x00, 0x01, 0x2B, 0 }; Guide_TM( 21 ) = { 1, 0x00, 0x01, 0x11, 0 }; Guide_TM( 22 ) = { 1, 0x00, 0x01, 0x54, 0 }; Guide_TM( 23 ) = { 1, 0x00, 0x01, 0x3A, 0 }; Guide_TM( 24 ) = { 1, 0x00, 0x01, 0x18, 0 }; Guide_TM( 25 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 26 ) = { 1, 0x00, 0x01, 0x15, 0 }; Guide_TM( 27 ) = { 1, 0x00, 0x01, 0x27, 0 }; Guide_TM( 28 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x07, 0 }; Guide_TM( 29 ) = { 1, 0x00, 0x01, 0x50, 0 }; Guide_TM( 30 ) = { 1, 0x00, 0x01, 0x42, 0 }; Guide_TM( 31 ) = { 1, 0x00, 0x01, 0x24, 0 }; Guide_TM( 32 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 33 ) = { 1, 0x00, 0x01, 0x28, 0 }; Guide_TM( 34 ) = { 1, 0x00, 0x01, 0x0E, 0 }; Guide_TM( 35 ) = { 1, 0x00, 0x01, 0x51, 0 }; Guide_TM( 36 ) = { 1, 0x00, 0x01, 0x25, 0 }; Guide_TM( 37 ) = { 1, 0x00, 0x01, 0x0B, 0 }; Guide_TM( 38 ) = { 1, 0x00, 0x01, 0x3B, 0 }; Guide_TM( 39 ) = { 1, 0x00, 0x01, 0x0F, 0 }; Guide_TM( 40 ) = { 1, 0x00, 0x01, 0x52, 0 }; Guide_TM( 41 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 42 ) = { 1, 0x00, 0x01, 0x3C, 0 }; Guide_TM( 43 ) = { 1, 0x00, 0x01, 0x21, 0 }; Guide_TM( 44 ) = { 1, 0x00, 0x01, 0x10, 0 }; Guide_TM( 45 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x06, 0 }; Guide_TM( 46 ) = { 1, 0x00, 0x01, 0x39, 0 }; Guide_TM( 47 ) = { 1, 0x00, 0x01, 0x1E, 0 }; Guide_TM( 48 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 49 ) = { 1, 0x00, 0x01, 0x22, 0 }; Guide_TM( 50 ) = { 1, 0x00, 0x01, 0x4B, 0 }; Guide_TM( 51 ) = { 1, 0x00, 0x01, 0x0C, 0 }; Guide_TM( 52 ) = { 1, 0x00, 0x01, 0x4F, 0 }; Guide_TM( 53 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 54 ) = { 1, 0x00, 0x01, 0x23, 0 }; Guide_TM( 55 ) = { 1, 0x00, 0x01, 0x07, 0 }; Guide_TM( 56 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 57 ) = { 1, 0x00, 0x01, 0x30, 0 }; Guide_TM( 58 ) = { 1, 0x00, 0x01, 0x0D, 0 }; Guide_TM( 59 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 60 ) = { 1, 0x00, 0x01, 0x08, 0 }; Guide_TM( 61 ) = { 1, 0x00, 0x01, 0x1F, 0 }; Guide_TM( 62 ) = { 1, 0x00, 0x01, 0x48, 0 }; Guide_TM( 63 ) = { 1, 0x00, 0x01, 0x35, 0 }; Guide_TM( 64 ) = { 1, 0x00, 0x01, 0x1C, 0 }; Guide_TM( 65 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 66 ) = { 1, 0x00, 0x01, 0x20, 0 }; Guide_TM( 67 ) = { 1, 0x00, 0x01, 0x04, 0 }; Guide_TM( 68 ) = { 1, 0x00, 0x01, 0x49, 0 }; Guide_TM( 69 ) = { 1, 0x00, 0x01, 0x1D, 0 }; Guide_TM( 70 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 71 ) = { 1, 0x00, 0x01, 0x58, 0 }; Guide_TM( 72 ) = { 1, 0x00, 0x01, 0x05, 0 }; Guide_TM( 73 ) = { 1, 0x00, 0x01, 0x4A, 0 }; Guide_TM( 74 ) = { 1, 0x00, 0x01, 0x2C, 0 }; Guide_TM( 75 ) = { 1, 0x00, 0x01, 0x55, 0 }; Guide_TM( 76 ) = { 1, 0x00, 0x01, 0x32, 0 }; Guide_TM( 77 ) = { 1, 0x00, 0x01, 0x19, 0 }; Guide_TM( 78 ) = { 1, 0x00, 0x01, 0x59, 0 }; Guide_TM( 79 ) = { 1, 0x00, 0x01, 0x06, 0 }; Guide_TM( 80 ) = { 1, 0x00, 0x01, 0x2F, 0 }; Guide_TM( 81 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 82 ) = { 1, 0x00, 0x01, 0x02, 0 }; Guide_TM( 83 ) = { 1, 0x00, 0x01, 0x47, 0 }; Guide_TM( 84 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 85 ) = { 1, 0x00, 0x01, 0x03, 0 }; Guide_TM( 86 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 87 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 88 ) = { 1, 0x00, 0x01, 0x42, 0 }; Guide_TM( 89 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 90 ) = { 1, 0x00, 0x01, 0x0E, 0 }; Guide_TM( 91 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 92 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 93 ) = { 1, 0x00, 0x01, 0x4B, 0 }; Guide_TM( 94 ) = { 1, 0x00, 0x01, 0x4F, 0 }; Guide_TM( 95 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 96 ) = { 1, 0x00, 0x01, 0x07, 0 }; Guide_TM( 97 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 98 ) = { 1, 0x00, 0x01, 0x30, 0 }; Guide_TM( 99 ) = { 1, 0x00, 0x01, 0x0D, 0 }; Guide_TM( 100 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 101 ) = { 1, 0x00, 0x01, 0x1F, 0 }; Guide_TM( 102 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 103 ) = { 1, 0x00, 0x01, 0x04, 0 }; Guide_TM( 104 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 105 ) = { 1, 0x00, 0x01, 0x05, 0 }; Guide_TM( 106 ) = { 1, 0x00, 0x01, 0x32, 0 }; Guide_TM( 107 ) = { 1, 0x00, 0x01, 0x59, 0 }; Guide_TM( 108 ) = { 1, 0x00, 0x01, 0x46, 0 }; Guide_TM( 109 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 110 ) = { 1, 0x00, 0x01, 0x1B, 0 }; Guide_TM( 111 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 112 ) = { 1, 0x00, 0x01, 0x56, 0 }; Guide_TM( 113 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 114 ) = { 1, 0x00, 0x01, 0x3D, 0 }; Guide_TM( 115 ) = { 1, 0x00, 0x01, 0x3A, 0 }; Guide_TM( 116 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 117 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 118 ) = { 1, 0x00, 0x01, 0x51, 0 }; Guide_TM( 119 ) = { 1, 0x00, 0x01, 0x3B, 0 }; Guide_TM( 120 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 121 ) = { 1, 0x00, 0x01, 0x3C, 0 }; Guide_TM( 122 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 123 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 124 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 125 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 126 ) = { 1, 0x00, 0x01, 0x48, 0 }; Guide_TM( 127 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 128 ) = { 1, 0x00, 0x01, 0x49, 0 }; Guide_TM( 129 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 130 ) = { 1, 0x00, 0x01, 0x55, 0 }; Guide_TM( 131 ) = { 1, 0x00, 0x01, 0x32, 0 };

// -- Trigger Macro List

// Indexed Table of Trigger Macros const TriggerMacro TriggerMacroList[] = { Define_TM( 0, 0 ), Define_TM( 1, 1 ), Define_TM( 2, 2 ), Define_TM( 3, 3 ), Define_TM( 4, 4 ), Define_TM( 5, 5 ), Define_TM( 6, 6 ), Define_TM( 7, 7 ), Define_TM( 8, 8 ), Define_TM( 9, 9 ), Define_TM( 10, 10 ), Define_TM( 11, 11 ), Define_TM( 12, 12 ), Define_TM( 13, 13 ), Define_TM( 14, 14 ), Define_TM( 15, 15 ), Define_TM( 16, 12 ), Define_TM( 17, 16 ), Define_TM( 18, 17 ), Define_TM( 19, 18 ), Define_TM( 20, 19 ), Define_TM( 21, 20 ), Define_TM( 22, 21 ), Define_TM( 23, 22 ), Define_TM( 24, 23 ), Define_TM( 25, 24 ), Define_TM( 26, 25 ), Define_TM( 27, 21 ), Define_TM( 28, 26 ), Define_TM( 29, 27 ), Define_TM( 30, 28 ), Define_TM( 31, 29 ), Define_TM( 32, 30 ), Define_TM( 33, 6 ), Define_TM( 34, 31 ), Define_TM( 35, 32 ), Define_TM( 36, 33 ), Define_TM( 37, 34 ), Define_TM( 38, 35 ), Define_TM( 39, 36 ), Define_TM( 40, 33 ), Define_TM( 41, 37 ), Define_TM( 42, 38 ), Define_TM( 43, 39 ), Define_TM( 44, 40 ), Define_TM( 45, 1 ), Define_TM( 46, 41 ), Define_TM( 47, 42 ), Define_TM( 48, 43 ), Define_TM( 49, 44 ), Define_TM( 50, 45 ), Define_TM( 51, 46 ), Define_TM( 52, 47 ), Define_TM( 53, 48 ), Define_TM( 54, 49 ), Define_TM( 55, 50 ), Define_TM( 56, 51 ), Define_TM( 57, 52 ), Define_TM( 58, 53 ), Define_TM( 59, 54 ), Define_TM( 60, 55 ), Define_TM( 61, 56 ), Define_TM( 62, 57 ), Define_TM( 63, 58 ), Define_TM( 64, 59 ), Define_TM( 65, 60 ), Define_TM( 66, 61 ), Define_TM( 67, 62 ), Define_TM( 68, 63 ), Define_TM( 69, 64 ), Define_TM( 70, 65 ), Define_TM( 71, 66 ), Define_TM( 72, 67 ), Define_TM( 73, 64 ), Define_TM( 74, 68 ), Define_TM( 75, 69 ), Define_TM( 76, 70 ), Define_TM( 77, 71 ), Define_TM( 78, 72 ), Define_TM( 79, 73 ), Define_TM( 80, 74 ), Define_TM( 81, 13 ), Define_TM( 82, 75 ), Define_TM( 83, 76 ), Define_TM( 84, 17 ), Define_TM( 85, 77 ), Define_TM( 86, 9 ), Define_TM( 87, 78 ), Define_TM( 88, 69 ), Define_TM( 89, 79 ), Define_TM( 90, 80 ), Define_TM( 91, 81 ), Define_TM( 92, 32 ), Define_TM( 93, 29 ), Define_TM( 94, 15 ), Define_TM( 95, 82 ), Define_TM( 96, 83 ), Define_TM( 97, 84 ), Define_TM( 98, 85 ), Define_TM( 99, 86 ), Define_TM( 100, 87 ), Define_TM( 101, 88 ), Define_TM( 102, 66 ), Define_TM( 103, 89 ), Define_TM( 104, 90 ), Define_TM( 105, 91 ), Define_TM( 106, 92 ), Define_TM( 107, 93 ), Define_TM( 108, 94 ), Define_TM( 109, 95 ), Define_TM( 110, 96 ), Define_TM( 111, 97 ), Define_TM( 112, 30 ), Define_TM( 113, 98 ), Define_TM( 114, 94 ), Define_TM( 115, 99 ), Define_TM( 116, 100 ), Define_TM( 117, 101 ), Define_TM( 118, 102 ), Define_TM( 119, 103 ), Define_TM( 120, 104 ), Define_TM( 121, 105 ), Define_TM( 122, 106 ), Define_TM( 123, 107 ), Define_TM( 124, 108 ), Define_TM( 125, 109 ), Define_TM( 126, 110 ), Define_TM( 127, 111 ), Define_TM( 128, 112 ), Define_TM( 129, 113 ), Define_TM( 130, 114 ), Define_TM( 131, 115 ), };

// -- Trigger Macro Record List

// Keeps a record/state of each trigger macro TriggerMacroRecord TriggerMacroRecordList[ TriggerMacroNum ];

// ----- Trigger Maps -----

// MaxScanCode // - This is retrieved from the KLL configuration // - Should be corollated with the max scan code in the scan module // - Maximum value is 0x100 (0x0 to 0xFF) // - Increasing it beyond the keyboard's capabilities is just a waste of ram...

define MaxScanCode 0x59

// -- Trigger Lists // // Index 0: # of triggers in list // Index n: pointer to trigger macro - use tm() macro

// - Default Layer - Define_TL( default, 0x02 ) = { 1, 6 }; Define_TL( default, 0x03 ) = { 1, 14 }; Define_TL( default, 0x04 ) = { 1, 67 }; Define_TL( default, 0x05 ) = { 1, 72 }; Define_TL( default, 0x06 ) = { 2, 0, 45 }; Define_TL( default, 0x07 ) = { 2, 28, 55 }; Define_TL( default, 0x08 ) = { 1, 60 }; Define_TL( default, 0x09 ) = { 0 }; Define_TL( default, 0x0A ) = { 0 }; Define_TL( default, 0x0B ) = { 1, 37 }; Define_TL( default, 0x0C ) = { 1, 51 }; Define_TL( default, 0x0D ) = { 1, 58 }; Define_TL( default, 0x0E ) = { 1, 34 }; Define_TL( default, 0x0F ) = { 1, 39 }; Define_TL( default, 0x10 ) = { 1, 44 }; Define_TL( default, 0x11 ) = { 1, 21 }; Define_TL( default, 0x12 ) = { 0 }; Define_TL( default, 0x13 ) = { 0 }; Define_TL( default, 0x14 ) = { 0 }; Define_TL( default, 0x15 ) = { 1, 26 }; Define_TL( default, 0x16 ) = { 1, 2 }; Define_TL( default, 0x17 ) = { 1, 17 }; Define_TL( default, 0x18 ) = { 1, 24 }; Define_TL( default, 0x19 ) = { 1, 77 }; Define_TL( default, 0x1A ) = { 1, 4 }; Define_TL( default, 0x1B ) = { 1, 9 }; Define_TL( default, 0x1C ) = { 1, 64 }; Define_TL( default, 0x1D ) = { 1, 69 }; Define_TL( default, 0x1E ) = { 1, 47 }; Define_TL( default, 0x1F ) = { 1, 61 }; Define_TL( default, 0x20 ) = { 1, 66 }; Define_TL( default, 0x21 ) = { 1, 43 }; Define_TL( default, 0x22 ) = { 1, 49 }; Define_TL( default, 0x23 ) = { 1, 54 }; Define_TL( default, 0x24 ) = { 1, 31 }; Define_TL( default, 0x25 ) = { 1, 36 }; Define_TL( default, 0x26 ) = { 1, 12 }; Define_TL( default, 0x27 ) = { 1, 27 }; Define_TL( default, 0x28 ) = { 1, 33 }; Define_TL( default, 0x29 ) = { 1, 8 }; Define_TL( default, 0x2A ) = { 1, 15 }; Define_TL( default, 0x2B ) = { 1, 20 }; Define_TL( default, 0x2C ) = { 4, 10, 28, 45, 74 }; Define_TL( default, 0x2D ) = { 0 }; Define_TL( default, 0x2E ) = { 0 }; Define_TL( default, 0x2F ) = { 1, 1 }; Define_TL( default, 0x30 ) = { 1, 57 }; Define_TL( default, 0x31 ) = { 1, 70 }; Define_TL( default, 0x32 ) = { 1, 76 }; Define_TL( default, 0x33 ) = { 1, 53 }; Define_TL( default, 0x34 ) = { 1, 59 }; Define_TL( default, 0x35 ) = { 1, 63 }; Define_TL( default, 0x36 ) = { 0 }; Define_TL( default, 0x37 ) = { 0 }; Define_TL( default, 0x38 ) = { 1, 41 }; Define_TL( default, 0x39 ) = { 1, 46 }; Define_TL( default, 0x3A ) = { 1, 23 }; Define_TL( default, 0x3B ) = { 1, 38 }; Define_TL( default, 0x3C ) = { 1, 42 }; Define_TL( default, 0x3D ) = { 1, 19 }; Define_TL( default, 0x3E ) = { 1, 25 }; Define_TL( default, 0x3F ) = { 0 }; Define_TL( default, 0x40 ) = { 0 }; Define_TL( default, 0x41 ) = { 0 }; Define_TL( default, 0x42 ) = { 1, 30 }; Define_TL( default, 0x43 ) = { 1, 5 }; Define_TL( default, 0x44 ) = { 1, 11 }; Define_TL( default, 0x45 ) = { 1, 65 }; Define_TL( default, 0x46 ) = { 1, 3 }; Define_TL( default, 0x47 ) = { 1, 7 }; Define_TL( default, 0x48 ) = { 1, 62 }; Define_TL( default, 0x49 ) = { 1, 68 }; Define_TL( default, 0x4A ) = { 1, 73 }; Define_TL( default, 0x4B ) = { 1, 50 }; Define_TL( default, 0x4C ) = { 1, 56 }; Define_TL( default, 0x4D ) = { 1, 32 }; Define_TL( default, 0x4E ) = { 1, 48 }; Define_TL( default, 0x4F ) = { 1, 52 }; Define_TL( default, 0x50 ) = { 1, 29 }; Define_TL( default, 0x51 ) = { 1, 35 }; Define_TL( default, 0x52 ) = { 1, 40 }; Define_TL( default, 0x53 ) = { 1, 16 }; Define_TL( default, 0x54 ) = { 1, 22 }; Define_TL( default, 0x55 ) = { 1, 75 }; Define_TL( default, 0x56 ) = { 1, 13 }; Define_TL( default, 0x57 ) = { 1, 18 }; Define_TL( default, 0x58 ) = { 1, 71 }; Define_TL( default, 0x59 ) = { 2, 10, 78 };

// - Partial Layers - // Partial Layer 1 Define_TL( layer1, 0x02 ) = { 1, 82 }; Define_TL( layer1, 0x03 ) = { 1, 85 }; Define_TL( layer1, 0x04 ) = { 1, 103 }; Define_TL( layer1, 0x05 ) = { 1, 105 }; Define_TL( layer1, 0x06 ) = { 1, 79 }; Define_TL( layer1, 0x07 ) = { 1, 96 }; Define_TL( layer1, 0x08 ) = { 0 }; Define_TL( layer1, 0x09 ) = { 0 }; Define_TL( layer1, 0x0A ) = { 0 }; Define_TL( layer1, 0x0B ) = { 0 }; Define_TL( layer1, 0x0C ) = { 0 }; Define_TL( layer1, 0x0D ) = { 1, 99 }; Define_TL( layer1, 0x0E ) = { 1, 90 }; Define_TL( layer1, 0x0F ) = { 0 }; Define_TL( layer1, 0x10 ) = { 0 }; Define_TL( layer1, 0x11 ) = { 0 }; Define_TL( layer1, 0x12 ) = { 0 }; Define_TL( layer1, 0x13 ) = { 0 }; Define_TL( layer1, 0x14 ) = { 0 }; Define_TL( layer1, 0x15 ) = { 0 }; Define_TL( layer1, 0x16 ) = { 0 }; Define_TL( layer1, 0x17 ) = { 0 }; Define_TL( layer1, 0x18 ) = { 0 }; Define_TL( layer1, 0x19 ) = { 0 }; Define_TL( layer1, 0x1A ) = { 0 }; Define_TL( layer1, 0x1B ) = { 0 }; Define_TL( layer1, 0x1C ) = { 0 }; Define_TL( layer1, 0x1D ) = { 0 }; Define_TL( layer1, 0x1E ) = { 0 }; Define_TL( layer1, 0x1F ) = { 1, 101 }; Define_TL( layer1, 0x20 ) = { 0 }; Define_TL( layer1, 0x21 ) = { 0 }; Define_TL( layer1, 0x22 ) = { 0 }; Define_TL( layer1, 0x23 ) = { 0 }; Define_TL( layer1, 0x24 ) = { 0 }; Define_TL( layer1, 0x25 ) = { 0 }; Define_TL( layer1, 0x26 ) = { 0 }; Define_TL( layer1, 0x27 ) = { 0 }; Define_TL( layer1, 0x28 ) = { 0 }; Define_TL( layer1, 0x29 ) = { 0 }; Define_TL( layer1, 0x2A ) = { 0 }; Define_TL( layer1, 0x2B ) = { 0 }; Define_TL( layer1, 0x2C ) = { 0 }; Define_TL( layer1, 0x2D ) = { 0 }; Define_TL( layer1, 0x2E ) = { 0 }; Define_TL( layer1, 0x2F ) = { 1, 80 }; Define_TL( layer1, 0x30 ) = { 1, 98 }; Define_TL( layer1, 0x31 ) = { 1, 104 }; Define_TL( layer1, 0x32 ) = { 1, 106 }; Define_TL( layer1, 0x33 ) = { 1, 95 }; Define_TL( layer1, 0x34 ) = { 1, 100 }; Define_TL( layer1, 0x35 ) = { 0 }; Define_TL( layer1, 0x36 ) = { 0 }; Define_TL( layer1, 0x37 ) = { 0 }; Define_TL( layer1, 0x38 ) = { 1, 91 }; Define_TL( layer1, 0x39 ) = { 0 }; Define_TL( layer1, 0x3A ) = { 0 }; Define_TL( layer1, 0x3B ) = { 0 }; Define_TL( layer1, 0x3C ) = { 0 }; Define_TL( layer1, 0x3D ) = { 0 }; Define_TL( layer1, 0x3E ) = { 1, 87 }; Define_TL( layer1, 0x3F ) = { 0 }; Define_TL( layer1, 0x40 ) = { 0 }; Define_TL( layer1, 0x41 ) = { 0 }; Define_TL( layer1, 0x42 ) = { 1, 88 }; Define_TL( layer1, 0x43 ) = { 1, 81 }; Define_TL( layer1, 0x44 ) = { 1, 84 }; Define_TL( layer1, 0x45 ) = { 1, 102 }; Define_TL( layer1, 0x46 ) = { 0 }; Define_TL( layer1, 0x47 ) = { 1, 83 }; Define_TL( layer1, 0x48 ) = { 0 }; Define_TL( layer1, 0x49 ) = { 0 }; Define_TL( layer1, 0x4A ) = { 0 }; Define_TL( layer1, 0x4B ) = { 1, 93 }; Define_TL( layer1, 0x4C ) = { 1, 97 }; Define_TL( layer1, 0x4D ) = { 1, 89 }; Define_TL( layer1, 0x4E ) = { 1, 92 }; Define_TL( layer1, 0x4F ) = { 1, 94 }; Define_TL( layer1, 0x50 ) = { 0 }; Define_TL( layer1, 0x51 ) = { 0 }; Define_TL( layer1, 0x52 ) = { 0 }; Define_TL( layer1, 0x53 ) = { 0 }; Define_TL( layer1, 0x54 ) = { 0 }; Define_TL( layer1, 0x55 ) = { 0 }; Define_TL( layer1, 0x56 ) = { 0 }; Define_TL( layer1, 0x57 ) = { 1, 86 }; Define_TL( layer1, 0x58 ) = { 0 }; Define_TL( layer1, 0x59 ) = { 1, 107 };

// Partial Layer 2 Define_TL( layer2, 0x1B ) = { 1, 110 }; Define_TL( layer2, 0x1C ) = { 0 }; Define_TL( layer2, 0x1D ) = { 0 }; Define_TL( layer2, 0x1E ) = { 0 }; Define_TL( layer2, 0x1F ) = { 0 }; Define_TL( layer2, 0x20 ) = { 0 }; Define_TL( layer2, 0x21 ) = { 0 }; Define_TL( layer2, 0x22 ) = { 0 }; Define_TL( layer2, 0x23 ) = { 0 }; Define_TL( layer2, 0x24 ) = { 0 }; Define_TL( layer2, 0x25 ) = { 0 }; Define_TL( layer2, 0x26 ) = { 0 }; Define_TL( layer2, 0x27 ) = { 0 }; Define_TL( layer2, 0x28 ) = { 0 }; Define_TL( layer2, 0x29 ) = { 0 }; Define_TL( layer2, 0x2A ) = { 0 }; Define_TL( layer2, 0x2B ) = { 0 }; Define_TL( layer2, 0x2C ) = { 0 }; Define_TL( layer2, 0x2D ) = { 0 }; Define_TL( layer2, 0x2E ) = { 0 }; Define_TL( layer2, 0x2F ) = { 0 }; Define_TL( layer2, 0x30 ) = { 0 }; Define_TL( layer2, 0x31 ) = { 1, 129 }; Define_TL( layer2, 0x32 ) = { 1, 131 }; Define_TL( layer2, 0x33 ) = { 1, 123 }; Define_TL( layer2, 0x34 ) = { 1, 125 }; Define_TL( layer2, 0x35 ) = { 0 }; Define_TL( layer2, 0x36 ) = { 0 }; Define_TL( layer2, 0x37 ) = { 0 }; Define_TL( layer2, 0x38 ) = { 1, 120 }; Define_TL( layer2, 0x39 ) = { 0 }; Define_TL( layer2, 0x3A ) = { 1, 115 }; Define_TL( layer2, 0x3B ) = { 1, 119 }; Define_TL( layer2, 0x3C ) = { 1, 121 }; Define_TL( layer2, 0x3D ) = { 1, 114 }; Define_TL( layer2, 0x3E ) = { 1, 116 }; Define_TL( layer2, 0x3F ) = { 0 }; Define_TL( layer2, 0x40 ) = { 0 }; Define_TL( layer2, 0x41 ) = { 0 }; Define_TL( layer2, 0x42 ) = { 0 }; Define_TL( layer2, 0x43 ) = { 1, 109 }; Define_TL( layer2, 0x44 ) = { 1, 111 }; Define_TL( layer2, 0x45 ) = { 1, 127 }; Define_TL( layer2, 0x46 ) = { 1, 108 }; Define_TL( layer2, 0x47 ) = { 0 }; Define_TL( layer2, 0x48 ) = { 1, 126 }; Define_TL( layer2, 0x49 ) = { 1, 128 }; Define_TL( layer2, 0x4A ) = { 0 }; Define_TL( layer2, 0x4B ) = { 0 }; Define_TL( layer2, 0x4C ) = { 1, 124 }; Define_TL( layer2, 0x4D ) = { 1, 117 }; Define_TL( layer2, 0x4E ) = { 1, 122 }; Define_TL( layer2, 0x4F ) = { 0 }; Define_TL( layer2, 0x50 ) = { 0 }; Define_TL( layer2, 0x51 ) = { 1, 118 }; Define_TL( layer2, 0x52 ) = { 0 }; Define_TL( layer2, 0x53 ) = { 0 }; Define_TL( layer2, 0x54 ) = { 0 }; Define_TL( layer2, 0x55 ) = { 1, 130 }; Define_TL( layer2, 0x56 ) = { 1, 112 }; Define_TL( layer2, 0x57 ) = { 1, 113 };

// -- ScanCode Offset Map // Maps interconnect ids to scancode offsets // // Only used for keyboards with an interconnect const uint8_t InterconnectOffsetList[] = { 0x2D, 0x59, };

// -- ScanCode Indexed Maps // Maps to a trigger list of macro pointers // _ // -> |T| // |r| -> <trigger macro pointer 1> // |i| // |g| -> <trigger macro pointer 2> // |g| // |e| -> <trigger macro pointer 3> // |r| // |s| -> // -

// - Default Map for ScanCode Lookup - const nat_ptr_t *default_scanMap[] = { default_tl_0x02, default_tl_0x03, default_tl_0x04, default_tl_0x05, default_tl_0x06, default_tl_0x07, default_tl_0x08, default_tl_0x09, default_tl_0x0A, default_tl_0x0B, default_tl_0x0C, default_tl_0x0D, default_tl_0x0E, default_tl_0x0F, default_tl_0x10, default_tl_0x11, default_tl_0x12, default_tl_0x13, default_tl_0x14, default_tl_0x15, default_tl_0x16, default_tl_0x17, default_tl_0x18, default_tl_0x19, default_tl_0x1A, default_tl_0x1B, default_tl_0x1C, default_tl_0x1D, default_tl_0x1E, default_tl_0x1F, default_tl_0x20, default_tl_0x21, default_tl_0x22, default_tl_0x23, default_tl_0x24, default_tl_0x25, default_tl_0x26, default_tl_0x27, default_tl_0x28, default_tl_0x29, default_tl_0x2A, default_tl_0x2B, default_tl_0x2C, default_tl_0x2D, default_tl_0x2E, default_tl_0x2F, default_tl_0x30, default_tl_0x31, default_tl_0x32, default_tl_0x33, default_tl_0x34, default_tl_0x35, default_tl_0x36, default_tl_0x37, default_tl_0x38, default_tl_0x39, default_tl_0x3A, default_tl_0x3B, default_tl_0x3C, default_tl_0x3D, default_tl_0x3E, default_tl_0x3F, default_tl_0x40, default_tl_0x41, default_tl_0x42, default_tl_0x43, default_tl_0x44, default_tl_0x45, default_tl_0x46, default_tl_0x47, default_tl_0x48, default_tl_0x49, default_tl_0x4A, default_tl_0x4B, default_tl_0x4C, default_tl_0x4D, default_tl_0x4E, default_tl_0x4F, default_tl_0x50, default_tl_0x51, default_tl_0x52, default_tl_0x53, default_tl_0x54, default_tl_0x55, default_tl_0x56, default_tl_0x57, default_tl_0x58, default_tl_0x59 };

// - Partial Layer ScanCode Lookup Maps - // Partial Layer 1 const nat_ptr_t *layer1_scanMap[] = { layer1_tl_0x02, layer1_tl_0x03, layer1_tl_0x04, layer1_tl_0x05, layer1_tl_0x06, layer1_tl_0x07, layer1_tl_0x08, layer1_tl_0x09, layer1_tl_0x0A, layer1_tl_0x0B, layer1_tl_0x0C, layer1_tl_0x0D, layer1_tl_0x0E, layer1_tl_0x0F, layer1_tl_0x10, layer1_tl_0x11, layer1_tl_0x12, layer1_tl_0x13, layer1_tl_0x14, layer1_tl_0x15, layer1_tl_0x16, layer1_tl_0x17, layer1_tl_0x18, layer1_tl_0x19, layer1_tl_0x1A, layer1_tl_0x1B, layer1_tl_0x1C, layer1_tl_0x1D, layer1_tl_0x1E, layer1_tl_0x1F, layer1_tl_0x20, layer1_tl_0x21, layer1_tl_0x22, layer1_tl_0x23, layer1_tl_0x24, layer1_tl_0x25, layer1_tl_0x26, layer1_tl_0x27, layer1_tl_0x28, layer1_tl_0x29, layer1_tl_0x2A, layer1_tl_0x2B, layer1_tl_0x2C, layer1_tl_0x2D, layer1_tl_0x2E, layer1_tl_0x2F, layer1_tl_0x30, layer1_tl_0x31, layer1_tl_0x32, layer1_tl_0x33, layer1_tl_0x34, layer1_tl_0x35, layer1_tl_0x36, layer1_tl_0x37, layer1_tl_0x38, layer1_tl_0x39, layer1_tl_0x3A, layer1_tl_0x3B, layer1_tl_0x3C, layer1_tl_0x3D, layer1_tl_0x3E, layer1_tl_0x3F, layer1_tl_0x40, layer1_tl_0x41, layer1_tl_0x42, layer1_tl_0x43, layer1_tl_0x44, layer1_tl_0x45, layer1_tl_0x46, layer1_tl_0x47, layer1_tl_0x48, layer1_tl_0x49, layer1_tl_0x4A, layer1_tl_0x4B, layer1_tl_0x4C, layer1_tl_0x4D, layer1_tl_0x4E, layer1_tl_0x4F, layer1_tl_0x50, layer1_tl_0x51, layer1_tl_0x52, layer1_tl_0x53, layer1_tl_0x54, layer1_tl_0x55, layer1_tl_0x56, layer1_tl_0x57, layer1_tl_0x58, layer1_tl_0x59 };

// Partial Layer 2 const nat_ptr_t *layer2_scanMap[] = { layer2_tl_0x1B, layer2_tl_0x1C, layer2_tl_0x1D, layer2_tl_0x1E, layer2_tl_0x1F, layer2_tl_0x20, layer2_tl_0x21, layer2_tl_0x22, layer2_tl_0x23, layer2_tl_0x24, layer2_tl_0x25, layer2_tl_0x26, layer2_tl_0x27, layer2_tl_0x28, layer2_tl_0x29, layer2_tl_0x2A, layer2_tl_0x2B, layer2_tl_0x2C, layer2_tl_0x2D, layer2_tl_0x2E, layer2_tl_0x2F, layer2_tl_0x30, layer2_tl_0x31, layer2_tl_0x32, layer2_tl_0x33, layer2_tl_0x34, layer2_tl_0x35, layer2_tl_0x36, layer2_tl_0x37, layer2_tl_0x38, layer2_tl_0x39, layer2_tl_0x3A, layer2_tl_0x3B, layer2_tl_0x3C, layer2_tl_0x3D, layer2_tl_0x3E, layer2_tl_0x3F, layer2_tl_0x40, layer2_tl_0x41, layer2_tl_0x42, layer2_tl_0x43, layer2_tl_0x44, layer2_tl_0x45, layer2_tl_0x46, layer2_tl_0x47, layer2_tl_0x48, layer2_tl_0x49, layer2_tl_0x4A, layer2_tl_0x4B, layer2_tl_0x4C, layer2_tl_0x4D, layer2_tl_0x4E, layer2_tl_0x4F, layer2_tl_0x50, layer2_tl_0x51, layer2_tl_0x52, layer2_tl_0x53, layer2_tl_0x54, layer2_tl_0x55, layer2_tl_0x56, layer2_tl_0x57 };

// ----- Layer Index -----

// -- Layer Index List // // Index 0: Default map // Index n: Additional layers const Layer LayerIndex[] = { Layer_IN( default_scanMap, "D: MDErgo1 + lcdFuncMap", 0x02 ), Layer_IN( layer1_scanMap, "1: MDErgo1", 0x02 ), Layer_IN( layer2_scanMap, "2: MDErgo1", 0x1B ), };

// - Layer State uint8_t LayerState[ LayerNum ];

/* Copyright (C) 2014-2016 by Jacob Alexander *

// This file was generated by the kll compiler, DO NOT EDIT. // Generation Date: 2016-08-30 // KLL Backend: kiibohd // KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f // KLL Git Changes: None // Compiler arguments: // ../../kll/kll.py // /ergodox/controller/Scan/ISSILed/capabilities.kll // /ergodox/controller/Scan/MatrixARM/capabilities.kll // /ergodox/controller/Scan/STLcd/capabilities.kll // /ergodox/controller/Scan/UARTConnect/capabilities.kll // /ergodox/controller/Macro/PartialMap/capabilities.kll // /ergodox/controller/Output/pjrcUSB/capabilities.kll // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // -d // /ergodox/controller/kll/layouts/callaghp.kll // /ergodox/controller/kll/layouts/lcdFuncMap.kll // -p // /ergodox/controller/kll/layouts/callaghp1.kll // -p // /ergodox/controller/kll/layouts/callaghp2.kll // --backend // kiibohd // --templates // /ergodox/controller/kll/templates/kiibohdKeymap.h // /ergodox/controller/kll/templates/kiibohdDefs.h // --outputs // generatedKeymap.h // kll_defs.h // // - Base Layer - // ISSILedCapabilities // /ergodox/controller/Scan/ISSILed/capabilities.kll // MatrixArmCapabilities // /ergodox/controller/Scan/MatrixARM/capabilities.kll // STLcdCapabilities // /ergodox/controller/Scan/STLcd/capabilities.kll // UARTConnectCapabilities // /ergodox/controller/Scan/UARTConnect/capabilities.kll // PartialMapCapabilities // /ergodox/controller/Macro/PartialMap/capabilities.kll // pjrcUSBCapabilities // /ergodox/controller/Output/pjrcUSB/capabilities.kll // MDErgo1 // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // MDErgo1LeftHand // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // MDErgo1Slave1 // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // MDErgo1RightHand // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // - Default Layer - // MDErgo1 // /ergodox/controller/kll/layouts/callaghp.kll // lcdFuncMap // /ergodox/controller/kll/layouts/lcdFuncMap.kll // - Partial Layers - // Layer 1 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp1.kll // Layer 2 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp2.kll

pragma once

// ----- Enums -----

// Capability Indices typedef enum CapabilityIndex { LCD_layerStackExact_capability_index, LCD_layerStack_capability_index, LED_control_capability_index, Macro_layerLatch_capability_index, Macro_layerLock_capability_index, Macro_layerRotate_capability_index, Macro_layerShift_capability_index, Macro_layerState_capability_index, Output_consCtrlSend_capability_index, Output_flashMode_capability_index, Output_kbdProtocolBoot_capability_index, Output_kbdProtocolNKRO_capability_index, Output_noneSend_capability_index, Output_sysCtrlSend_capability_index, Output_toggleKbdProtocol_capability_index, Output_usbCodeSend_capability_index, Output_usbMouse_capability_index, } CapabilityIndex;

// ----- KLL Variables -----

// ----- Defines -----

// -- Interconnect Node Maximum --

define InterconnectNodeMax 0x2

define enableUSBSuspend_define 1

define UARTConnectBaudFine_define 0

define STLcdNumber0Color_define 0xB939, 0xAAEA, 0x8D8D

define IndexWordSize_define 16

define LCDEnabled_define 1

define UARTConnectBufSize_define 128

define UARTConnectCableCheckLength_define 2

define STLcdNumber3_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber1_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \

define STLcdNumber1Color_define 0xA8A8, 0x2727, 0x1FA0

define STLcdNumber9_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber5_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0x00, 0x00, 0x00, \

define STLcdDefaultImage_define 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xe8, 0xb0, 0x58, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0xe8, 0xb8, 0xe8, 0xb0, 0x80, 0x00, 0x00, 0x00, 0xe0, 0x50, 0xa0, 0xf8, 0x50, 0x68, 0x38, 0x28, 0x70, 0x28, 0x50, 0xf0, 0x48, 0xa0, 0xd0, 0x18, 0x28, 0xf0, 0x58, 0xf0, 0x40, 0xa0, 0x80, 0x00, 0xc0, 0x50, 0xe8, 0xb8, 0x68, 0x30, 0x08, 0x00, 0x80, 0xe0, 0xd0, 0x68, 0xb0, 0x68, 0x38, 0x28, 0x50, 0x38, 0x50, 0x70, 0x50, 0xa0, 0x00, 0x00, 0x78, 0xd0, 0xb8, 0xe8, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0xe8, 0x50, 0xf8, 0x50, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbf, 0x6a, 0xd7, 0x7d, 0xa2, 0x40, 0x80, 0x00, 0x00, 0x00, 0x95, 0xef, 0xba, 0x75, 0xde, 0x20, 0x00, 0x7f, 0xab, 0xdd, 0x77, 0xd8, 0x28, 0x98, 0x14, 0x18, 0x28, 0x98, 0x70, 0xd8, 0xa8, 0xf9, 0x00, 0x03, 0x02, 0x04, 0x01, 0xc3, 0x6d, 0xb6, 0x5b, 0xee, 0x3b, 0xed, 0xb6, 0xd1, 0x60, 0x80, 0x80, 0x15, 0x6e, 0xdb, 0x76, 0xad, 0xd9, 0x30, 0x18, 0x14, 0x28, 0x18, 0x54, 0xf8, 0x48, 0xf4, 0x58, 0x00, 0x05, 0xbb, 0xf6, 0x5d, 0xf6, 0x88, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xd7, 0x3d, 0xeb, 0x5d, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x05, 0x07, 0x01, 0x06, 0x05, 0x06, 0x0b, 0x06, 0x05, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x05, 0x07, 0x04, 0x0f, 0x04, 0x0b, 0x06, 0x07, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x07, 0x05, 0x07, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x12, 0x25, 0x47, 0x8a, 0x06, 0x84, 0x01, 0x03, 0x05, 0x06, 0x0b, 0x06, 0x0d, 0x06, 0x0d, 0x07, 0x05, 0x03, 0x01, 0x00, 0x00, 0x80, 0x85, 0x86, 0x45, 0x47, 0x06, 0x41, 0x07, 0x05, 0x06, 0x0b, 0x05, 0x0f, 0x05, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x06, 0x04, 0x0c, 0x06, 0x08, 0x0c, 0x06, 0x0a, 0x04, 0x06, 0x03, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x12, 0x1c, 0x0a, 0x14, 0x2c, 0x30, 0x4c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

define DebounceThrottleDiv_define 0

define StateWordSize_define 8

define STLcdNumber4_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define UARTConnectBaud_define 1

define STLcdNumber9Color_define 0x09CA, 0x12D3, 0x8484

define STLcdNumber5Color_define 0xB7B7, 0x5D5D, 0x8545

define enableVirtualSerialPort_define 1

define enableMouse_define 1

define STLcdNumber0_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber8_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define enableJoystick_define 0

define DebounceDivThreshold_define 65535

define STLcdNumber3Color_define 0x0000, 0x8242, 0xB3F3

define KeyboardLocale_define 0

define STLcdNumber4Color_define 0xF6F6, 0xA5A5, 0x4949

define flashModeEnabled_define 0

define STLcdBacklightBlue_define 4095

define enableUSBLowPowerNegotiation_define 0

define STLcdBacklightGreen_define 4095

define USBProtocol_define 1

define ConnectEnabled_define 1

define StrobeDelay_define 0

define STLcdBacklightPrescalar_define 0

define STLcdNumber6Color_define 0xBCFC, 0xB6F6, 0x2D2D

define enableRawIO_define 0

define STLcdNumber8Color_define 0x8303, 0x1394, 0xB9F9

define ISSILedBrightness1_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* C1-1 -> C1-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C2-1 -> C2-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C3-1 -> C3-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C4-1 -> C4-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C5-1 -> C5-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C6-1 -> C6-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C7-1 -> C7-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C8-1 -> C8-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C9-1 -> C9-16 */ \

define STLcdBacklightRed_define 4095

define enableKeyboard_define 1

define STLcdNumber6_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0x00, 0x00, 0x00, \

define STLcdNumber2Color_define 0x4B4B, 0x8D8D, 0x34B5

define STLcdNumber7Color_define 0x00C1, 0x7E7E, 0x3C3C

define STLcdNumber7_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define enableUSBResume_define 1

define STLcdNumber2_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define MinDebounceTime_define 5

define ISSILedMask1_define \

0xFF, 0x00, /\* C1-1 -> C1-16 _/ \
0xFF, 0x00, /_ C2-1 -> C2-16 _/ \
0xFF, 0x00, /_ C3-1 -> C3-16 _/ \
0xFF, 0x00, /_ C4-1 -> C4-16 _/ \
0x3F, 0x00, /_ C5-1 -> C5-16 _/ \
0x00, 0x00, /_ C6-1 -> C6-16 _/ \
0x00, 0x00, /_ C7-1 -> C7-16 _/ \
0x00, 0x00, /_ C8-1 -> C8-16 _/ \
0x00, 0x00, /_ C9-1 -> C9-16 */ \

define enableDeviceRestartOnUSBTimeout_define 0

define CapabilitiesNum_KLL 17

define ResultMacroNum_KLL 116

define TriggerMacroNum_KLL 132

define LayerNum_KLL 3

p-callaghan commented 8 years ago

No difference with python3.5.2.

Interestingly enough, I am not able to compile C code any more. It is coming up that only the ARM type is supported.

/usr/local/bin/ld: unrecognised emulation mode: elf_x86_64 Supported emulations: armelf

It didn’t occur to me until you mentioned the C macros. I am not sure how it got into this state, but I will do some investigation.

Peter

From: Callaghan, Peter (Calgary) Sent: Tuesday, August 30, 2016 4:41 PM To: 'kiibohd/controller'; 'kiibohd/controller' Cc: 'p-callaghan'; 'Author' Subject: RE: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

[root@ergodox /ergodox]# python3 --version Python 3.5.1

generatedKeymap.h and kll_defs.h files attached.

From: Jacob Alexander [mailto:notifications@github.com] Sent: Tuesday, August 30, 2016 4:36 PM To: kiibohd/controller Cc: p-callaghan; Author Subject: Re: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

Hmm.

Which version of Python3 do you have?

Also, can you post your generatedKeymap.h and kll_defs.h files? They should be in the build directory. My guess is that something is going on with the kll compiler that's affecting the C macros.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kiibohd/controller/issues/145#issuecomment-243603506, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQRzYuk4GfycdTi4iAKSGHqfeQa-ejCsks5qlLBNgaJpZM4JojUi.


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


p-callaghan commented 8 years ago

The Supported Emulation is unrelated.

I setup a new Linux install, added the tool and the compiler is giving me the exact same error.

I confirmed I can still compile normal C code on the new system as well.

Just in case there is something off with the first system here are those files and the error again from the new system.

[ 56%] Building C object CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o ../../Output/pjrcUSB/arm/usb_desc.c:44:19: error: expected expression before ')' token

define LSB(n) ((n) & 255)

               ^

../../Output/pjrcUSB/arm/usb_desc.c:63:2: note: in expansion of macro 'LSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ ../../Output/pjrcUSB/arm/usb_desc.c:45:20: error: expected expression before ')' token

define MSB(n) (((n) >> 8) & 255)

                ^

../../Output/pjrcUSB/arm/usb_desc.c:63:20: note: in expansion of macro 'MSB' LSB(BCD_VERSION), MSB(BCD_VERSION), // bcdDevice ^ make[2]: * [CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o] Error 1 make[1]: * [CMakeFiles/kiibohd.elf.dir/all] Error 2 make: *\ [all] Error 2 Error in make. Exiting...

From: Callaghan, Peter (Calgary) [mailto:Peter.Callaghan@nexencnoocltd.com] Sent: Tuesday, August 30, 2016 5:23 PM To: 'kiibohd/controller'; 'kiibohd/controller' Cc: 'p-callaghan'; 'Author' Subject: RE: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

No difference with python3.5.2.

Interestingly enough, I am not able to compile C code any more. It is coming up that only the ARM type is supported.

/usr/local/bin/ld: unrecognised emulation mode: elf_x86_64 Supported emulations: armelf

It didn’t occur to me until you mentioned the C macros. I am not sure how it got into this state, but I will do some investigation.

Peter

From: Callaghan, Peter (Calgary) Sent: Tuesday, August 30, 2016 4:41 PM To: 'kiibohd/controller'; 'kiibohd/controller' Cc: 'p-callaghan'; 'Author' Subject: RE: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

[root@ergodox /ergodox]# python3 --version Python 3.5.1

generatedKeymap.h and kll_defs.h files attached.

From: Jacob Alexander [mailto:notifications@github.com] Sent: Tuesday, August 30, 2016 4:36 PM To: kiibohd/controller Cc: p-callaghan; Author Subject: Re: [kiibohd/controller] Compile Errors in usb_desc.c (#145)

Hmm.

Which version of Python3 do you have?

Also, can you post your generatedKeymap.h and kll_defs.h files? They should be in the build directory. My guess is that something is going on with the kll compiler that's affecting the C macros.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kiibohd/controller/issues/145#issuecomment-243603506, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQRzYuk4GfycdTi4iAKSGHqfeQa-ejCsks5qlLBNgaJpZM4JojUi.


IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.



IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.


/* Copyright (C) 2014-2016 by Jacob Alexander *

// This file was generated by the kll compiler, DO NOT EDIT. // Generation Date: 2016-08-30 // KLL Backend: kiibohd // KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f // KLL Git Changes: None // Compiler arguments: // ../../kll/kll.py // /ergodox/controller/Scan/ISSILed/capabilities.kll // /ergodox/controller/Scan/MatrixARM/capabilities.kll // /ergodox/controller/Scan/STLcd/capabilities.kll // /ergodox/controller/Scan/UARTConnect/capabilities.kll // /ergodox/controller/Macro/PartialMap/capabilities.kll // /ergodox/controller/Output/pjrcUSB/capabilities.kll // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // -d // /ergodox/controller/kll/layouts/callaghp.kll // /ergodox/controller/kll/layouts/lcdFuncMap.kll // -p // /ergodox/controller/kll/layouts/callaghp1.kll // -p // /ergodox/controller/kll/layouts/callaghp2.kll // --backend // kiibohd // --templates // /ergodox/controller/kll/templates/kiibohdKeymap.h // /ergodox/controller/kll/templates/kiibohdDefs.h // --outputs // generatedKeymap.h // kll_defs.h // // - Base Layer - // ISSILedCapabilities // /ergodox/controller/Scan/ISSILed/capabilities.kll // MatrixArmCapabilities // /ergodox/controller/Scan/MatrixARM/capabilities.kll // STLcdCapabilities // /ergodox/controller/Scan/STLcd/capabilities.kll // UARTConnectCapabilities // /ergodox/controller/Scan/UARTConnect/capabilities.kll // PartialMapCapabilities // /ergodox/controller/Macro/PartialMap/capabilities.kll // pjrcUSBCapabilities // /ergodox/controller/Output/pjrcUSB/capabilities.kll // MDErgo1 // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // MDErgo1LeftHand // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // MDErgo1Slave1 // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // MDErgo1RightHand // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // - Default Layer - // MDErgo1 // /ergodox/controller/kll/layouts/callaghp.kll // lcdFuncMap // /ergodox/controller/kll/layouts/lcdFuncMap.kll // - Partial Layers - // Layer 1 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp1.kll // Layer 2 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp2.kll

pragma once

// ----- Includes -----

// KLL Include

include

// ----- Capabilities -----

// Capability function declarations void LCD_layerStackExact_capability( uint8_t state, uint8_t stateType, uint8_t args ); void LCD_layerStack_capability( uint8_t state, uint8_t stateType, uint8_t args ); void LED_control_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerLatch_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerLock_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerRotate_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerShift_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Macro_layerState_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_flashMode_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_kbdProtocolBoot_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_kbdProtocolNKRO_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_toggleKbdProtocol_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t args ); void Output_usbMouse_capability( uint8_t state, uint8_t stateType, uint8_t *args );

// Indexed Capabilities Table const Capability CapabilitiesList[] = { { LCD_layerStackExact_capability, 9 }, { LCD_layerStack_capability, 0 }, { LED_control_capability, 4 }, { Macro_layerLatch_capability, 2 }, { Macro_layerLock_capability, 2 }, { Macro_layerRotate_capability, 1 }, { Macro_layerShift_capability, 2 }, { Macro_layerState_capability, 3 }, { Output_consCtrlSend_capability, 2 }, { Output_flashMode_capability, 0 }, { Output_kbdProtocolBoot_capability, 0 }, { Output_kbdProtocolNKRO_capability, 0 }, { Output_noneSend_capability, 0 }, { Output_sysCtrlSend_capability, 1 }, { Output_toggleKbdProtocol_capability, 0 }, { Output_usbCodeSend_capability, 1 }, { Output_usbMouse_capability, 6 }, };

// -- Result Macros

// Result Macro Guides Guide_RM( 0 ) = { 1, 15, KEY_2, 0 }; Guide_RM( 1 ) = { 2, 4, 2, 0, 1, 0 }; Guide_RM( 2 ) = { 1, 15, KEY_F, 0 }; Guide_RM( 3 ) = { 1, 15, KEY_SEMICOLON, 0 }; Guide_RM( 4 ) = { 2, 15, KEY_LSHIFT, 15, KEY_BACKSLASH, 0 }; Guide_RM( 5 ) = { 1, 15, KEY_J, 0 }; Guide_RM( 6 ) = { 1, 15, KEY_ESC, 0 }; Guide_RM( 7 ) = { 1, 15, KEY_QUOTE, 0 }; Guide_RM( 8 ) = { 1, 15, KEY_EQUAL, 0 }; Guide_RM( 9 ) = { 1, 15, KEY_PRINTSCREEN, 0 }; Guide_RM( 10 ) = { 2, 15, KEY_LCTRL, 15, KEY_RIGHT_BRACKET, 0 }; Guide_RM( 11 ) = { 1, 15, KEY_K, 0 }; Guide_RM( 12 ) = { 1, 15, KEY_BACKSPACE, 0 }; Guide_RM( 13 ) = { 1, 15, KEY_DOWN, 0 }; Guide_RM( 14 ) = { 1, 15, KEY_5, 0 }; Guide_RM( 15 ) = { 1, 15, KEY_BACKSLASH, 0 }; Guide_RM( 16 ) = { 1, 15, KEY_D, 0 }; Guide_RM( 17 ) = { 1, 15, KEY_UP, 0 }; Guide_RM( 18 ) = { 1, 15, KEY_P, 0 }; Guide_RM( 19 ) = { 1, 15, KEY_RALT, 0 }; Guide_RM( 20 ) = { 1, 15, KEY_TAB, 0 }; Guide_RM( 21 ) = { 1, 15, KEY_SPACE, 0 }; Guide_RM( 22 ) = { 1, 15, KEY_U, 0 }; Guide_RM( 23 ) = { 1, 15, KEY_S, 0 }; Guide_RM( 24 ) = { 1, 15, KEY_RIGHT_BRACKET, 0 }; Guide_RM( 25 ) = { 1, 15, KEY_G, 0 }; Guide_RM( 26 ) = { 2, 4, 1, 0, 1, 0 }; Guide_RM( 27 ) = { 1, 15, KEY_RSHIFT, 0 }; Guide_RM( 28 ) = { 1, 15, KEY_H, 0 }; Guide_RM( 29 ) = { 1, 15, KEY_HOME, 0 }; Guide_RM( 30 ) = { 1, 15, KEY_COMMA, 0 }; Guide_RM( 31 ) = { 1, 15, KEY_E, 0 }; Guide_RM( 32 ) = { 1, 15, KEY_END, 0 }; Guide_RM( 33 ) = { 1, 15, KEY_ENTER, 0 }; Guide_RM( 34 ) = { 2, 6, 2, 0, 1, 0 }; Guide_RM( 35 ) = { 1, 15, KEY_I, 0 }; Guide_RM( 36 ) = { 1, 15, KEY_W, 0 }; Guide_RM( 37 ) = { 1, 15, KEY_LEFT_BRACKET, 0 }; Guide_RM( 38 ) = { 1, 15, KEY_O, 0 }; Guide_RM( 39 ) = { 1, 15, KEY_X, 0 }; Guide_RM( 40 ) = { 1, 15, KEY_Q, 0 }; Guide_RM( 41 ) = { 1, 15, KEY_Y, 0 }; Guide_RM( 42 ) = { 1, 15, KEY_B, 0 }; Guide_RM( 43 ) = { 1, 15, KEY_PERIOD, 0 }; Guide_RM( 44 ) = { 1, 15, KEY_Z, 0 }; Guide_RM( 45 ) = { 1, 15, KEY_N, 0 }; Guide_RM( 46 ) = { 1, 15, KEY_T, 0 }; Guide_RM( 47 ) = { 1, 15, KEY_SLASH, 0 }; Guide_RM( 48 ) = { 1, 15, KEY_9, 0 }; Guide_RM( 49 ) = { 1, 15, KEY_LSHIFT, 0 }; Guide_RM( 50 ) = { 1, 15, KEY_1, 0 }; Guide_RM( 51 ) = { 1, 15, KEY_M, 0 }; Guide_RM( 52 ) = { 1, 15, KEY_6, 0 }; Guide_RM( 53 ) = { 1, 15, KEY_R, 0 }; Guide_RM( 54 ) = { 1, 15, KEY_0, 0 }; Guide_RM( 55 ) = { 1, 15, KEY_BACKTICK, 0 }; Guide_RM( 56 ) = { 1, 15, KEY_V, 0 }; Guide_RM( 57 ) = { 1, 15, KEY_PAGE_UP, 0 }; Guide_RM( 58 ) = { 1, 15, KEY_MINUS, 0 }; Guide_RM( 59 ) = { 1, 15, KEY_LGUI, 0 }; Guide_RM( 60 ) = { 1, 15, KEY_L, 0 }; Guide_RM( 61 ) = { 1, 15, KEY_C, 0 }; Guide_RM( 62 ) = { 1, 15, KEY_4, 0 }; Guide_RM( 63 ) = { 1, 15, KEY_PAGE_DOWN, 0 }; Guide_RM( 64 ) = { 2, 6, 1, 0, 1, 0 }; Guide_RM( 65 ) = { 1, 15, KEY_7, 0 }; Guide_RM( 66 ) = { 1, 15, KEY_RIGHT, 0 }; Guide_RM( 67 ) = { 1, 15, KEY_3, 0 }; Guide_RM( 68 ) = { 1, 15, KEY_LCTRL, 0 }; Guide_RM( 69 ) = { 1, 15, KEY_LEFT, 0 }; Guide_RM( 70 ) = { 1, 15, KEY_8, 0 }; Guide_RM( 71 ) = { 1, 15, KEY_A, 0 }; Guide_RM( 72 ) = { 1, 15, KEY_DELETE, 0 }; Guide_RM( 73 ) = { 1, 15, KEY_F2, 0 }; Guide_RM( 74 ) = { 1, 15, KEY_F12, 0 }; Guide_RM( 75 ) = { 1, 15, KEY_F11, 0 }; Guide_RM( 76 ) = { 2, 15, KEY_LSHIFT, 15, KEY_QUOTE, 0 }; Guide_RM( 77 ) = { 1, 15, KEY_F5, 0 }; Guide_RM( 78 ) = { 2, 15, KEY_LSHIFT, 15, KEY_0, 0 }; Guide_RM( 79 ) = { 2, 15, KEY_LCTRL, 15, KEY_RIGHT, 0 }; Guide_RM( 80 ) = { 2, 15, KEY_LGUI, 15, KEY_E, 0 }; Guide_RM( 81 ) = { 2, 15, KEY_LSHIFT, 15, KEY_9, 0 }; Guide_RM( 82 ) = { 1, 15, KEY_F9, 0 }; Guide_RM( 83 ) = { 1, 15, KEY_F1, 0 }; Guide_RM( 84 ) = { 2, 15, KEY_LCTRL, 15, KEY_LEFT, 0 }; Guide_RM( 85 ) = { 1, 15, KEY_F6, 0 }; Guide_RM( 86 ) = { 2, 15, KEY_LGUI, 15, KEY_R, 0 }; Guide_RM( 87 ) = { 1, 15, KEY_F10, 0 }; Guide_RM( 88 ) = { 1, 16, 2, 0, 0, 0, 0, 0, 0 }; Guide_RM( 89 ) = { 1, 15, KEY_F4, 0 }; Guide_RM( 90 ) = { 1, 15, KEY_F7, 0 }; Guide_RM( 91 ) = { 1, 15, KEY_F3, 0 }; Guide_RM( 92 ) = { 1, 15, KEY_F8, 0 }; Guide_RM( 93 ) = { 3, 15, KEY_LCTRL, 15, KEY_LALT, 15, KEY_DELETE, 0 }; Guide_RM( 94 ) = { 1, 15, KEYPAD_PLUS, 0 }; Guide_RM( 95 ) = { 1, 15, KEYPAD_4, 0 }; Guide_RM( 96 ) = { 1, 9, 0 }; Guide_RM( 97 ) = { 1, 15, KEYPAD_5, 0 }; Guide_RM( 98 ) = { 1, 15, KEYPAD_PERIOD, 0 }; Guide_RM( 99 ) = { 1, 15, KEYPAD_7, 0 }; Guide_RM( 100 ) = { 2, 15, KEY_LSHIFT, 15, KEY_PERIOD, 0 }; Guide_RM( 101 ) = { 1, 15, KEYPAD_2, 0 }; Guide_RM( 102 ) = { 1, 2, 3, 15, 0, 0, 0 }; Guide_RM( 103 ) = { 1, 15, KEYPAD_8, 0 }; Guide_RM( 104 ) = { 2, 15, KEY_LSHIFT, 15, KEY_COMMA, 0 }; Guide_RM( 105 ) = { 1, 15, KEYPAD_9, 0 }; Guide_RM( 106 ) = { 1, 15, KEYPAD_3, 0 }; Guide_RM( 107 ) = { 1, 15, KEYPAD_ASTERISK, 0 }; Guide_RM( 108 ) = { 1, 15, KEYPAD_1, 0 }; Guide_RM( 109 ) = { 1, 15, KEYPAD_MINUS, 0 }; Guide_RM( 110 ) = { 1, 2, 4, 15, 0, 0, 0 }; Guide_RM( 111 ) = { 1, 15, KEYPAD_6, 0 }; Guide_RM( 112 ) = { 1, 2, 5, 0, 0, 0, 0 }; Guide_RM( 113 ) = { 1, 15, KEY_NUM_LOCK, 0 }; Guide_RM( 114 ) = { 1, 15, KEYPAD_0, 0 }; Guide_RM( 115 ) = { 1, 15, KEYPAD_SLASH, 0 };

// -- Result Macro List

// Indexed Table of Result Macros const ResultMacro ResultMacroList[] = { Define_RM( 0 ), Define_RM( 1 ), Define_RM( 2 ), Define_RM( 3 ), Define_RM( 4 ), Define_RM( 5 ), Define_RM( 6 ), Define_RM( 7 ), Define_RM( 8 ), Define_RM( 9 ), Define_RM( 10 ), Define_RM( 11 ), Define_RM( 12 ), Define_RM( 13 ), Define_RM( 14 ), Define_RM( 15 ), Define_RM( 16 ), Define_RM( 17 ), Define_RM( 18 ), Define_RM( 19 ), Define_RM( 20 ), Define_RM( 21 ), Define_RM( 22 ), Define_RM( 23 ), Define_RM( 24 ), Define_RM( 25 ), Define_RM( 26 ), Define_RM( 27 ), Define_RM( 28 ), Define_RM( 29 ), Define_RM( 30 ), Define_RM( 31 ), Define_RM( 32 ), Define_RM( 33 ), Define_RM( 34 ), Define_RM( 35 ), Define_RM( 36 ), Define_RM( 37 ), Define_RM( 38 ), Define_RM( 39 ), Define_RM( 40 ), Define_RM( 41 ), Define_RM( 42 ), Define_RM( 43 ), Define_RM( 44 ), Define_RM( 45 ), Define_RM( 46 ), Define_RM( 47 ), Define_RM( 48 ), Define_RM( 49 ), Define_RM( 50 ), Define_RM( 51 ), Define_RM( 52 ), Define_RM( 53 ), Define_RM( 54 ), Define_RM( 55 ), Define_RM( 56 ), Define_RM( 57 ), Define_RM( 58 ), Define_RM( 59 ), Define_RM( 60 ), Define_RM( 61 ), Define_RM( 62 ), Define_RM( 63 ), Define_RM( 64 ), Define_RM( 65 ), Define_RM( 66 ), Define_RM( 67 ), Define_RM( 68 ), Define_RM( 69 ), Define_RM( 70 ), Define_RM( 71 ), Define_RM( 72 ), Define_RM( 73 ), Define_RM( 74 ), Define_RM( 75 ), Define_RM( 76 ), Define_RM( 77 ), Define_RM( 78 ), Define_RM( 79 ), Define_RM( 80 ), Define_RM( 81 ), Define_RM( 82 ), Define_RM( 83 ), Define_RM( 84 ), Define_RM( 85 ), Define_RM( 86 ), Define_RM( 87 ), Define_RM( 88 ), Define_RM( 89 ), Define_RM( 90 ), Define_RM( 91 ), Define_RM( 92 ), Define_RM( 93 ), Define_RM( 94 ), Define_RM( 95 ), Define_RM( 96 ), Define_RM( 97 ), Define_RM( 98 ), Define_RM( 99 ), Define_RM( 100 ), Define_RM( 101 ), Define_RM( 102 ), Define_RM( 103 ), Define_RM( 104 ), Define_RM( 105 ), Define_RM( 106 ), Define_RM( 107 ), Define_RM( 108 ), Define_RM( 109 ), Define_RM( 110 ), Define_RM( 111 ), Define_RM( 112 ), Define_RM( 113 ), Define_RM( 114 ), Define_RM( 115 ), };

// -- Trigger Macro Record

// Keeps a record/state of each result macro ResultMacroRecord ResultMacroRecordList[ ResultMacroNum ];

// -- Trigger Macros

// Trigger Macro Guides Guide_TM( 0 ) = { 1, 0x00, 0x01, 0x06, 0 }; Guide_TM( 1 ) = { 1, 0x00, 0x01, 0x2F, 0 }; Guide_TM( 2 ) = { 1, 0x00, 0x01, 0x16, 0 }; Guide_TM( 3 ) = { 1, 0x00, 0x01, 0x46, 0 }; Guide_TM( 4 ) = { 1, 0x00, 0x01, 0x1A, 0 }; Guide_TM( 5 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 6 ) = { 1, 0x00, 0x01, 0x02, 0 }; Guide_TM( 7 ) = { 1, 0x00, 0x01, 0x47, 0 }; Guide_TM( 8 ) = { 1, 0x00, 0x01, 0x29, 0 }; Guide_TM( 9 ) = { 1, 0x00, 0x01, 0x1B, 0 }; Guide_TM( 10 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x59, 0 }; Guide_TM( 11 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 12 ) = { 1, 0x00, 0x01, 0x26, 0 }; Guide_TM( 13 ) = { 1, 0x00, 0x01, 0x56, 0 }; Guide_TM( 14 ) = { 1, 0x00, 0x01, 0x03, 0 }; Guide_TM( 15 ) = { 1, 0x00, 0x01, 0x2A, 0 }; Guide_TM( 16 ) = { 1, 0x00, 0x01, 0x53, 0 }; Guide_TM( 17 ) = { 1, 0x00, 0x01, 0x17, 0 }; Guide_TM( 18 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 19 ) = { 1, 0x00, 0x01, 0x3D, 0 }; Guide_TM( 20 ) = { 1, 0x00, 0x01, 0x2B, 0 }; Guide_TM( 21 ) = { 1, 0x00, 0x01, 0x11, 0 }; Guide_TM( 22 ) = { 1, 0x00, 0x01, 0x54, 0 }; Guide_TM( 23 ) = { 1, 0x00, 0x01, 0x3A, 0 }; Guide_TM( 24 ) = { 1, 0x00, 0x01, 0x18, 0 }; Guide_TM( 25 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 26 ) = { 1, 0x00, 0x01, 0x15, 0 }; Guide_TM( 27 ) = { 1, 0x00, 0x01, 0x27, 0 }; Guide_TM( 28 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x07, 0 }; Guide_TM( 29 ) = { 1, 0x00, 0x01, 0x50, 0 }; Guide_TM( 30 ) = { 1, 0x00, 0x01, 0x42, 0 }; Guide_TM( 31 ) = { 1, 0x00, 0x01, 0x24, 0 }; Guide_TM( 32 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 33 ) = { 1, 0x00, 0x01, 0x28, 0 }; Guide_TM( 34 ) = { 1, 0x00, 0x01, 0x0E, 0 }; Guide_TM( 35 ) = { 1, 0x00, 0x01, 0x51, 0 }; Guide_TM( 36 ) = { 1, 0x00, 0x01, 0x25, 0 }; Guide_TM( 37 ) = { 1, 0x00, 0x01, 0x0B, 0 }; Guide_TM( 38 ) = { 1, 0x00, 0x01, 0x3B, 0 }; Guide_TM( 39 ) = { 1, 0x00, 0x01, 0x0F, 0 }; Guide_TM( 40 ) = { 1, 0x00, 0x01, 0x52, 0 }; Guide_TM( 41 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 42 ) = { 1, 0x00, 0x01, 0x3C, 0 }; Guide_TM( 43 ) = { 1, 0x00, 0x01, 0x21, 0 }; Guide_TM( 44 ) = { 1, 0x00, 0x01, 0x10, 0 }; Guide_TM( 45 ) = { 2, 0x00, 0x01, 0x2C, 0x00, 0x01, 0x06, 0 }; Guide_TM( 46 ) = { 1, 0x00, 0x01, 0x39, 0 }; Guide_TM( 47 ) = { 1, 0x00, 0x01, 0x1E, 0 }; Guide_TM( 48 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 49 ) = { 1, 0x00, 0x01, 0x22, 0 }; Guide_TM( 50 ) = { 1, 0x00, 0x01, 0x4B, 0 }; Guide_TM( 51 ) = { 1, 0x00, 0x01, 0x0C, 0 }; Guide_TM( 52 ) = { 1, 0x00, 0x01, 0x4F, 0 }; Guide_TM( 53 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 54 ) = { 1, 0x00, 0x01, 0x23, 0 }; Guide_TM( 55 ) = { 1, 0x00, 0x01, 0x07, 0 }; Guide_TM( 56 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 57 ) = { 1, 0x00, 0x01, 0x30, 0 }; Guide_TM( 58 ) = { 1, 0x00, 0x01, 0x0D, 0 }; Guide_TM( 59 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 60 ) = { 1, 0x00, 0x01, 0x08, 0 }; Guide_TM( 61 ) = { 1, 0x00, 0x01, 0x1F, 0 }; Guide_TM( 62 ) = { 1, 0x00, 0x01, 0x48, 0 }; Guide_TM( 63 ) = { 1, 0x00, 0x01, 0x35, 0 }; Guide_TM( 64 ) = { 1, 0x00, 0x01, 0x1C, 0 }; Guide_TM( 65 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 66 ) = { 1, 0x00, 0x01, 0x20, 0 }; Guide_TM( 67 ) = { 1, 0x00, 0x01, 0x04, 0 }; Guide_TM( 68 ) = { 1, 0x00, 0x01, 0x49, 0 }; Guide_TM( 69 ) = { 1, 0x00, 0x01, 0x1D, 0 }; Guide_TM( 70 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 71 ) = { 1, 0x00, 0x01, 0x58, 0 }; Guide_TM( 72 ) = { 1, 0x00, 0x01, 0x05, 0 }; Guide_TM( 73 ) = { 1, 0x00, 0x01, 0x4A, 0 }; Guide_TM( 74 ) = { 1, 0x00, 0x01, 0x2C, 0 }; Guide_TM( 75 ) = { 1, 0x00, 0x01, 0x55, 0 }; Guide_TM( 76 ) = { 1, 0x00, 0x01, 0x32, 0 }; Guide_TM( 77 ) = { 1, 0x00, 0x01, 0x19, 0 }; Guide_TM( 78 ) = { 1, 0x00, 0x01, 0x59, 0 }; Guide_TM( 79 ) = { 1, 0x00, 0x01, 0x06, 0 }; Guide_TM( 80 ) = { 1, 0x00, 0x01, 0x2F, 0 }; Guide_TM( 81 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 82 ) = { 1, 0x00, 0x01, 0x02, 0 }; Guide_TM( 83 ) = { 1, 0x00, 0x01, 0x47, 0 }; Guide_TM( 84 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 85 ) = { 1, 0x00, 0x01, 0x03, 0 }; Guide_TM( 86 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 87 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 88 ) = { 1, 0x00, 0x01, 0x42, 0 }; Guide_TM( 89 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 90 ) = { 1, 0x00, 0x01, 0x0E, 0 }; Guide_TM( 91 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 92 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 93 ) = { 1, 0x00, 0x01, 0x4B, 0 }; Guide_TM( 94 ) = { 1, 0x00, 0x01, 0x4F, 0 }; Guide_TM( 95 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 96 ) = { 1, 0x00, 0x01, 0x07, 0 }; Guide_TM( 97 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 98 ) = { 1, 0x00, 0x01, 0x30, 0 }; Guide_TM( 99 ) = { 1, 0x00, 0x01, 0x0D, 0 }; Guide_TM( 100 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 101 ) = { 1, 0x00, 0x01, 0x1F, 0 }; Guide_TM( 102 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 103 ) = { 1, 0x00, 0x01, 0x04, 0 }; Guide_TM( 104 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 105 ) = { 1, 0x00, 0x01, 0x05, 0 }; Guide_TM( 106 ) = { 1, 0x00, 0x01, 0x32, 0 }; Guide_TM( 107 ) = { 1, 0x00, 0x01, 0x59, 0 }; Guide_TM( 108 ) = { 1, 0x00, 0x01, 0x46, 0 }; Guide_TM( 109 ) = { 1, 0x00, 0x01, 0x43, 0 }; Guide_TM( 110 ) = { 1, 0x00, 0x01, 0x1B, 0 }; Guide_TM( 111 ) = { 1, 0x00, 0x01, 0x44, 0 }; Guide_TM( 112 ) = { 1, 0x00, 0x01, 0x56, 0 }; Guide_TM( 113 ) = { 1, 0x00, 0x01, 0x57, 0 }; Guide_TM( 114 ) = { 1, 0x00, 0x01, 0x3D, 0 }; Guide_TM( 115 ) = { 1, 0x00, 0x01, 0x3A, 0 }; Guide_TM( 116 ) = { 1, 0x00, 0x01, 0x3E, 0 }; Guide_TM( 117 ) = { 1, 0x00, 0x01, 0x4D, 0 }; Guide_TM( 118 ) = { 1, 0x00, 0x01, 0x51, 0 }; Guide_TM( 119 ) = { 1, 0x00, 0x01, 0x3B, 0 }; Guide_TM( 120 ) = { 1, 0x00, 0x01, 0x38, 0 }; Guide_TM( 121 ) = { 1, 0x00, 0x01, 0x3C, 0 }; Guide_TM( 122 ) = { 1, 0x00, 0x01, 0x4E, 0 }; Guide_TM( 123 ) = { 1, 0x00, 0x01, 0x33, 0 }; Guide_TM( 124 ) = { 1, 0x00, 0x01, 0x4C, 0 }; Guide_TM( 125 ) = { 1, 0x00, 0x01, 0x34, 0 }; Guide_TM( 126 ) = { 1, 0x00, 0x01, 0x48, 0 }; Guide_TM( 127 ) = { 1, 0x00, 0x01, 0x45, 0 }; Guide_TM( 128 ) = { 1, 0x00, 0x01, 0x49, 0 }; Guide_TM( 129 ) = { 1, 0x00, 0x01, 0x31, 0 }; Guide_TM( 130 ) = { 1, 0x00, 0x01, 0x55, 0 }; Guide_TM( 131 ) = { 1, 0x00, 0x01, 0x32, 0 };

// -- Trigger Macro List

// Indexed Table of Trigger Macros const TriggerMacro TriggerMacroList[] = { Define_TM( 0, 0 ), Define_TM( 1, 1 ), Define_TM( 2, 2 ), Define_TM( 3, 3 ), Define_TM( 4, 4 ), Define_TM( 5, 5 ), Define_TM( 6, 6 ), Define_TM( 7, 7 ), Define_TM( 8, 8 ), Define_TM( 9, 9 ), Define_TM( 10, 10 ), Define_TM( 11, 11 ), Define_TM( 12, 12 ), Define_TM( 13, 13 ), Define_TM( 14, 14 ), Define_TM( 15, 15 ), Define_TM( 16, 12 ), Define_TM( 17, 16 ), Define_TM( 18, 17 ), Define_TM( 19, 18 ), Define_TM( 20, 19 ), Define_TM( 21, 20 ), Define_TM( 22, 21 ), Define_TM( 23, 22 ), Define_TM( 24, 23 ), Define_TM( 25, 24 ), Define_TM( 26, 25 ), Define_TM( 27, 21 ), Define_TM( 28, 26 ), Define_TM( 29, 27 ), Define_TM( 30, 28 ), Define_TM( 31, 29 ), Define_TM( 32, 30 ), Define_TM( 33, 6 ), Define_TM( 34, 31 ), Define_TM( 35, 32 ), Define_TM( 36, 33 ), Define_TM( 37, 34 ), Define_TM( 38, 35 ), Define_TM( 39, 36 ), Define_TM( 40, 33 ), Define_TM( 41, 37 ), Define_TM( 42, 38 ), Define_TM( 43, 39 ), Define_TM( 44, 40 ), Define_TM( 45, 1 ), Define_TM( 46, 41 ), Define_TM( 47, 42 ), Define_TM( 48, 43 ), Define_TM( 49, 44 ), Define_TM( 50, 45 ), Define_TM( 51, 46 ), Define_TM( 52, 47 ), Define_TM( 53, 48 ), Define_TM( 54, 49 ), Define_TM( 55, 50 ), Define_TM( 56, 51 ), Define_TM( 57, 52 ), Define_TM( 58, 53 ), Define_TM( 59, 54 ), Define_TM( 60, 55 ), Define_TM( 61, 56 ), Define_TM( 62, 57 ), Define_TM( 63, 58 ), Define_TM( 64, 59 ), Define_TM( 65, 60 ), Define_TM( 66, 61 ), Define_TM( 67, 62 ), Define_TM( 68, 63 ), Define_TM( 69, 64 ), Define_TM( 70, 65 ), Define_TM( 71, 66 ), Define_TM( 72, 67 ), Define_TM( 73, 64 ), Define_TM( 74, 68 ), Define_TM( 75, 69 ), Define_TM( 76, 70 ), Define_TM( 77, 71 ), Define_TM( 78, 72 ), Define_TM( 79, 73 ), Define_TM( 80, 74 ), Define_TM( 81, 13 ), Define_TM( 82, 75 ), Define_TM( 83, 76 ), Define_TM( 84, 17 ), Define_TM( 85, 77 ), Define_TM( 86, 9 ), Define_TM( 87, 78 ), Define_TM( 88, 69 ), Define_TM( 89, 79 ), Define_TM( 90, 80 ), Define_TM( 91, 81 ), Define_TM( 92, 32 ), Define_TM( 93, 29 ), Define_TM( 94, 15 ), Define_TM( 95, 82 ), Define_TM( 96, 83 ), Define_TM( 97, 84 ), Define_TM( 98, 85 ), Define_TM( 99, 86 ), Define_TM( 100, 87 ), Define_TM( 101, 88 ), Define_TM( 102, 66 ), Define_TM( 103, 89 ), Define_TM( 104, 90 ), Define_TM( 105, 91 ), Define_TM( 106, 92 ), Define_TM( 107, 93 ), Define_TM( 108, 94 ), Define_TM( 109, 95 ), Define_TM( 110, 96 ), Define_TM( 111, 97 ), Define_TM( 112, 30 ), Define_TM( 113, 98 ), Define_TM( 114, 94 ), Define_TM( 115, 99 ), Define_TM( 116, 100 ), Define_TM( 117, 101 ), Define_TM( 118, 102 ), Define_TM( 119, 103 ), Define_TM( 120, 104 ), Define_TM( 121, 105 ), Define_TM( 122, 106 ), Define_TM( 123, 107 ), Define_TM( 124, 108 ), Define_TM( 125, 109 ), Define_TM( 126, 110 ), Define_TM( 127, 111 ), Define_TM( 128, 112 ), Define_TM( 129, 113 ), Define_TM( 130, 114 ), Define_TM( 131, 115 ), };

// -- Trigger Macro Record List

// Keeps a record/state of each trigger macro TriggerMacroRecord TriggerMacroRecordList[ TriggerMacroNum ];

// ----- Trigger Maps -----

// MaxScanCode // - This is retrieved from the KLL configuration // - Should be corollated with the max scan code in the scan module // - Maximum value is 0x100 (0x0 to 0xFF) // - Increasing it beyond the keyboard's capabilities is just a waste of ram...

define MaxScanCode 0x59

// -- Trigger Lists // // Index 0: # of triggers in list // Index n: pointer to trigger macro - use tm() macro

// - Default Layer - Define_TL( default, 0x02 ) = { 1, 6 }; Define_TL( default, 0x03 ) = { 1, 14 }; Define_TL( default, 0x04 ) = { 1, 67 }; Define_TL( default, 0x05 ) = { 1, 72 }; Define_TL( default, 0x06 ) = { 2, 0, 45 }; Define_TL( default, 0x07 ) = { 2, 28, 55 }; Define_TL( default, 0x08 ) = { 1, 60 }; Define_TL( default, 0x09 ) = { 0 }; Define_TL( default, 0x0A ) = { 0 }; Define_TL( default, 0x0B ) = { 1, 37 }; Define_TL( default, 0x0C ) = { 1, 51 }; Define_TL( default, 0x0D ) = { 1, 58 }; Define_TL( default, 0x0E ) = { 1, 34 }; Define_TL( default, 0x0F ) = { 1, 39 }; Define_TL( default, 0x10 ) = { 1, 44 }; Define_TL( default, 0x11 ) = { 1, 21 }; Define_TL( default, 0x12 ) = { 0 }; Define_TL( default, 0x13 ) = { 0 }; Define_TL( default, 0x14 ) = { 0 }; Define_TL( default, 0x15 ) = { 1, 26 }; Define_TL( default, 0x16 ) = { 1, 2 }; Define_TL( default, 0x17 ) = { 1, 17 }; Define_TL( default, 0x18 ) = { 1, 24 }; Define_TL( default, 0x19 ) = { 1, 77 }; Define_TL( default, 0x1A ) = { 1, 4 }; Define_TL( default, 0x1B ) = { 1, 9 }; Define_TL( default, 0x1C ) = { 1, 64 }; Define_TL( default, 0x1D ) = { 1, 69 }; Define_TL( default, 0x1E ) = { 1, 47 }; Define_TL( default, 0x1F ) = { 1, 61 }; Define_TL( default, 0x20 ) = { 1, 66 }; Define_TL( default, 0x21 ) = { 1, 43 }; Define_TL( default, 0x22 ) = { 1, 49 }; Define_TL( default, 0x23 ) = { 1, 54 }; Define_TL( default, 0x24 ) = { 1, 31 }; Define_TL( default, 0x25 ) = { 1, 36 }; Define_TL( default, 0x26 ) = { 1, 12 }; Define_TL( default, 0x27 ) = { 1, 27 }; Define_TL( default, 0x28 ) = { 1, 33 }; Define_TL( default, 0x29 ) = { 1, 8 }; Define_TL( default, 0x2A ) = { 1, 15 }; Define_TL( default, 0x2B ) = { 1, 20 }; Define_TL( default, 0x2C ) = { 4, 10, 28, 45, 74 }; Define_TL( default, 0x2D ) = { 0 }; Define_TL( default, 0x2E ) = { 0 }; Define_TL( default, 0x2F ) = { 1, 1 }; Define_TL( default, 0x30 ) = { 1, 57 }; Define_TL( default, 0x31 ) = { 1, 70 }; Define_TL( default, 0x32 ) = { 1, 76 }; Define_TL( default, 0x33 ) = { 1, 53 }; Define_TL( default, 0x34 ) = { 1, 59 }; Define_TL( default, 0x35 ) = { 1, 63 }; Define_TL( default, 0x36 ) = { 0 }; Define_TL( default, 0x37 ) = { 0 }; Define_TL( default, 0x38 ) = { 1, 41 }; Define_TL( default, 0x39 ) = { 1, 46 }; Define_TL( default, 0x3A ) = { 1, 23 }; Define_TL( default, 0x3B ) = { 1, 38 }; Define_TL( default, 0x3C ) = { 1, 42 }; Define_TL( default, 0x3D ) = { 1, 19 }; Define_TL( default, 0x3E ) = { 1, 25 }; Define_TL( default, 0x3F ) = { 0 }; Define_TL( default, 0x40 ) = { 0 }; Define_TL( default, 0x41 ) = { 0 }; Define_TL( default, 0x42 ) = { 1, 30 }; Define_TL( default, 0x43 ) = { 1, 5 }; Define_TL( default, 0x44 ) = { 1, 11 }; Define_TL( default, 0x45 ) = { 1, 65 }; Define_TL( default, 0x46 ) = { 1, 3 }; Define_TL( default, 0x47 ) = { 1, 7 }; Define_TL( default, 0x48 ) = { 1, 62 }; Define_TL( default, 0x49 ) = { 1, 68 }; Define_TL( default, 0x4A ) = { 1, 73 }; Define_TL( default, 0x4B ) = { 1, 50 }; Define_TL( default, 0x4C ) = { 1, 56 }; Define_TL( default, 0x4D ) = { 1, 32 }; Define_TL( default, 0x4E ) = { 1, 48 }; Define_TL( default, 0x4F ) = { 1, 52 }; Define_TL( default, 0x50 ) = { 1, 29 }; Define_TL( default, 0x51 ) = { 1, 35 }; Define_TL( default, 0x52 ) = { 1, 40 }; Define_TL( default, 0x53 ) = { 1, 16 }; Define_TL( default, 0x54 ) = { 1, 22 }; Define_TL( default, 0x55 ) = { 1, 75 }; Define_TL( default, 0x56 ) = { 1, 13 }; Define_TL( default, 0x57 ) = { 1, 18 }; Define_TL( default, 0x58 ) = { 1, 71 }; Define_TL( default, 0x59 ) = { 2, 10, 78 };

// - Partial Layers - // Partial Layer 1 Define_TL( layer1, 0x02 ) = { 1, 82 }; Define_TL( layer1, 0x03 ) = { 1, 85 }; Define_TL( layer1, 0x04 ) = { 1, 103 }; Define_TL( layer1, 0x05 ) = { 1, 105 }; Define_TL( layer1, 0x06 ) = { 1, 79 }; Define_TL( layer1, 0x07 ) = { 1, 96 }; Define_TL( layer1, 0x08 ) = { 0 }; Define_TL( layer1, 0x09 ) = { 0 }; Define_TL( layer1, 0x0A ) = { 0 }; Define_TL( layer1, 0x0B ) = { 0 }; Define_TL( layer1, 0x0C ) = { 0 }; Define_TL( layer1, 0x0D ) = { 1, 99 }; Define_TL( layer1, 0x0E ) = { 1, 90 }; Define_TL( layer1, 0x0F ) = { 0 }; Define_TL( layer1, 0x10 ) = { 0 }; Define_TL( layer1, 0x11 ) = { 0 }; Define_TL( layer1, 0x12 ) = { 0 }; Define_TL( layer1, 0x13 ) = { 0 }; Define_TL( layer1, 0x14 ) = { 0 }; Define_TL( layer1, 0x15 ) = { 0 }; Define_TL( layer1, 0x16 ) = { 0 }; Define_TL( layer1, 0x17 ) = { 0 }; Define_TL( layer1, 0x18 ) = { 0 }; Define_TL( layer1, 0x19 ) = { 0 }; Define_TL( layer1, 0x1A ) = { 0 }; Define_TL( layer1, 0x1B ) = { 0 }; Define_TL( layer1, 0x1C ) = { 0 }; Define_TL( layer1, 0x1D ) = { 0 }; Define_TL( layer1, 0x1E ) = { 0 }; Define_TL( layer1, 0x1F ) = { 1, 101 }; Define_TL( layer1, 0x20 ) = { 0 }; Define_TL( layer1, 0x21 ) = { 0 }; Define_TL( layer1, 0x22 ) = { 0 }; Define_TL( layer1, 0x23 ) = { 0 }; Define_TL( layer1, 0x24 ) = { 0 }; Define_TL( layer1, 0x25 ) = { 0 }; Define_TL( layer1, 0x26 ) = { 0 }; Define_TL( layer1, 0x27 ) = { 0 }; Define_TL( layer1, 0x28 ) = { 0 }; Define_TL( layer1, 0x29 ) = { 0 }; Define_TL( layer1, 0x2A ) = { 0 }; Define_TL( layer1, 0x2B ) = { 0 }; Define_TL( layer1, 0x2C ) = { 0 }; Define_TL( layer1, 0x2D ) = { 0 }; Define_TL( layer1, 0x2E ) = { 0 }; Define_TL( layer1, 0x2F ) = { 1, 80 }; Define_TL( layer1, 0x30 ) = { 1, 98 }; Define_TL( layer1, 0x31 ) = { 1, 104 }; Define_TL( layer1, 0x32 ) = { 1, 106 }; Define_TL( layer1, 0x33 ) = { 1, 95 }; Define_TL( layer1, 0x34 ) = { 1, 100 }; Define_TL( layer1, 0x35 ) = { 0 }; Define_TL( layer1, 0x36 ) = { 0 }; Define_TL( layer1, 0x37 ) = { 0 }; Define_TL( layer1, 0x38 ) = { 1, 91 }; Define_TL( layer1, 0x39 ) = { 0 }; Define_TL( layer1, 0x3A ) = { 0 }; Define_TL( layer1, 0x3B ) = { 0 }; Define_TL( layer1, 0x3C ) = { 0 }; Define_TL( layer1, 0x3D ) = { 0 }; Define_TL( layer1, 0x3E ) = { 1, 87 }; Define_TL( layer1, 0x3F ) = { 0 }; Define_TL( layer1, 0x40 ) = { 0 }; Define_TL( layer1, 0x41 ) = { 0 }; Define_TL( layer1, 0x42 ) = { 1, 88 }; Define_TL( layer1, 0x43 ) = { 1, 81 }; Define_TL( layer1, 0x44 ) = { 1, 84 }; Define_TL( layer1, 0x45 ) = { 1, 102 }; Define_TL( layer1, 0x46 ) = { 0 }; Define_TL( layer1, 0x47 ) = { 1, 83 }; Define_TL( layer1, 0x48 ) = { 0 }; Define_TL( layer1, 0x49 ) = { 0 }; Define_TL( layer1, 0x4A ) = { 0 }; Define_TL( layer1, 0x4B ) = { 1, 93 }; Define_TL( layer1, 0x4C ) = { 1, 97 }; Define_TL( layer1, 0x4D ) = { 1, 89 }; Define_TL( layer1, 0x4E ) = { 1, 92 }; Define_TL( layer1, 0x4F ) = { 1, 94 }; Define_TL( layer1, 0x50 ) = { 0 }; Define_TL( layer1, 0x51 ) = { 0 }; Define_TL( layer1, 0x52 ) = { 0 }; Define_TL( layer1, 0x53 ) = { 0 }; Define_TL( layer1, 0x54 ) = { 0 }; Define_TL( layer1, 0x55 ) = { 0 }; Define_TL( layer1, 0x56 ) = { 0 }; Define_TL( layer1, 0x57 ) = { 1, 86 }; Define_TL( layer1, 0x58 ) = { 0 }; Define_TL( layer1, 0x59 ) = { 1, 107 };

// Partial Layer 2 Define_TL( layer2, 0x1B ) = { 1, 110 }; Define_TL( layer2, 0x1C ) = { 0 }; Define_TL( layer2, 0x1D ) = { 0 }; Define_TL( layer2, 0x1E ) = { 0 }; Define_TL( layer2, 0x1F ) = { 0 }; Define_TL( layer2, 0x20 ) = { 0 }; Define_TL( layer2, 0x21 ) = { 0 }; Define_TL( layer2, 0x22 ) = { 0 }; Define_TL( layer2, 0x23 ) = { 0 }; Define_TL( layer2, 0x24 ) = { 0 }; Define_TL( layer2, 0x25 ) = { 0 }; Define_TL( layer2, 0x26 ) = { 0 }; Define_TL( layer2, 0x27 ) = { 0 }; Define_TL( layer2, 0x28 ) = { 0 }; Define_TL( layer2, 0x29 ) = { 0 }; Define_TL( layer2, 0x2A ) = { 0 }; Define_TL( layer2, 0x2B ) = { 0 }; Define_TL( layer2, 0x2C ) = { 0 }; Define_TL( layer2, 0x2D ) = { 0 }; Define_TL( layer2, 0x2E ) = { 0 }; Define_TL( layer2, 0x2F ) = { 0 }; Define_TL( layer2, 0x30 ) = { 0 }; Define_TL( layer2, 0x31 ) = { 1, 129 }; Define_TL( layer2, 0x32 ) = { 1, 131 }; Define_TL( layer2, 0x33 ) = { 1, 123 }; Define_TL( layer2, 0x34 ) = { 1, 125 }; Define_TL( layer2, 0x35 ) = { 0 }; Define_TL( layer2, 0x36 ) = { 0 }; Define_TL( layer2, 0x37 ) = { 0 }; Define_TL( layer2, 0x38 ) = { 1, 120 }; Define_TL( layer2, 0x39 ) = { 0 }; Define_TL( layer2, 0x3A ) = { 1, 115 }; Define_TL( layer2, 0x3B ) = { 1, 119 }; Define_TL( layer2, 0x3C ) = { 1, 121 }; Define_TL( layer2, 0x3D ) = { 1, 114 }; Define_TL( layer2, 0x3E ) = { 1, 116 }; Define_TL( layer2, 0x3F ) = { 0 }; Define_TL( layer2, 0x40 ) = { 0 }; Define_TL( layer2, 0x41 ) = { 0 }; Define_TL( layer2, 0x42 ) = { 0 }; Define_TL( layer2, 0x43 ) = { 1, 109 }; Define_TL( layer2, 0x44 ) = { 1, 111 }; Define_TL( layer2, 0x45 ) = { 1, 127 }; Define_TL( layer2, 0x46 ) = { 1, 108 }; Define_TL( layer2, 0x47 ) = { 0 }; Define_TL( layer2, 0x48 ) = { 1, 126 }; Define_TL( layer2, 0x49 ) = { 1, 128 }; Define_TL( layer2, 0x4A ) = { 0 }; Define_TL( layer2, 0x4B ) = { 0 }; Define_TL( layer2, 0x4C ) = { 1, 124 }; Define_TL( layer2, 0x4D ) = { 1, 117 }; Define_TL( layer2, 0x4E ) = { 1, 122 }; Define_TL( layer2, 0x4F ) = { 0 }; Define_TL( layer2, 0x50 ) = { 0 }; Define_TL( layer2, 0x51 ) = { 1, 118 }; Define_TL( layer2, 0x52 ) = { 0 }; Define_TL( layer2, 0x53 ) = { 0 }; Define_TL( layer2, 0x54 ) = { 0 }; Define_TL( layer2, 0x55 ) = { 1, 130 }; Define_TL( layer2, 0x56 ) = { 1, 112 }; Define_TL( layer2, 0x57 ) = { 1, 113 };

// -- ScanCode Offset Map // Maps interconnect ids to scancode offsets // // Only used for keyboards with an interconnect const uint8_t InterconnectOffsetList[] = { 0x2D, 0x59, };

// -- ScanCode Indexed Maps // Maps to a trigger list of macro pointers // _ // -> |T| // |r| -> <trigger macro pointer 1> // |i| // |g| -> <trigger macro pointer 2> // |g| // |e| -> <trigger macro pointer 3> // |r| // |s| -> // -

// - Default Map for ScanCode Lookup - const nat_ptr_t *default_scanMap[] = { default_tl_0x02, default_tl_0x03, default_tl_0x04, default_tl_0x05, default_tl_0x06, default_tl_0x07, default_tl_0x08, default_tl_0x09, default_tl_0x0A, default_tl_0x0B, default_tl_0x0C, default_tl_0x0D, default_tl_0x0E, default_tl_0x0F, default_tl_0x10, default_tl_0x11, default_tl_0x12, default_tl_0x13, default_tl_0x14, default_tl_0x15, default_tl_0x16, default_tl_0x17, default_tl_0x18, default_tl_0x19, default_tl_0x1A, default_tl_0x1B, default_tl_0x1C, default_tl_0x1D, default_tl_0x1E, default_tl_0x1F, default_tl_0x20, default_tl_0x21, default_tl_0x22, default_tl_0x23, default_tl_0x24, default_tl_0x25, default_tl_0x26, default_tl_0x27, default_tl_0x28, default_tl_0x29, default_tl_0x2A, default_tl_0x2B, default_tl_0x2C, default_tl_0x2D, default_tl_0x2E, default_tl_0x2F, default_tl_0x30, default_tl_0x31, default_tl_0x32, default_tl_0x33, default_tl_0x34, default_tl_0x35, default_tl_0x36, default_tl_0x37, default_tl_0x38, default_tl_0x39, default_tl_0x3A, default_tl_0x3B, default_tl_0x3C, default_tl_0x3D, default_tl_0x3E, default_tl_0x3F, default_tl_0x40, default_tl_0x41, default_tl_0x42, default_tl_0x43, default_tl_0x44, default_tl_0x45, default_tl_0x46, default_tl_0x47, default_tl_0x48, default_tl_0x49, default_tl_0x4A, default_tl_0x4B, default_tl_0x4C, default_tl_0x4D, default_tl_0x4E, default_tl_0x4F, default_tl_0x50, default_tl_0x51, default_tl_0x52, default_tl_0x53, default_tl_0x54, default_tl_0x55, default_tl_0x56, default_tl_0x57, default_tl_0x58, default_tl_0x59 };

// - Partial Layer ScanCode Lookup Maps - // Partial Layer 1 const nat_ptr_t *layer1_scanMap[] = { layer1_tl_0x02, layer1_tl_0x03, layer1_tl_0x04, layer1_tl_0x05, layer1_tl_0x06, layer1_tl_0x07, layer1_tl_0x08, layer1_tl_0x09, layer1_tl_0x0A, layer1_tl_0x0B, layer1_tl_0x0C, layer1_tl_0x0D, layer1_tl_0x0E, layer1_tl_0x0F, layer1_tl_0x10, layer1_tl_0x11, layer1_tl_0x12, layer1_tl_0x13, layer1_tl_0x14, layer1_tl_0x15, layer1_tl_0x16, layer1_tl_0x17, layer1_tl_0x18, layer1_tl_0x19, layer1_tl_0x1A, layer1_tl_0x1B, layer1_tl_0x1C, layer1_tl_0x1D, layer1_tl_0x1E, layer1_tl_0x1F, layer1_tl_0x20, layer1_tl_0x21, layer1_tl_0x22, layer1_tl_0x23, layer1_tl_0x24, layer1_tl_0x25, layer1_tl_0x26, layer1_tl_0x27, layer1_tl_0x28, layer1_tl_0x29, layer1_tl_0x2A, layer1_tl_0x2B, layer1_tl_0x2C, layer1_tl_0x2D, layer1_tl_0x2E, layer1_tl_0x2F, layer1_tl_0x30, layer1_tl_0x31, layer1_tl_0x32, layer1_tl_0x33, layer1_tl_0x34, layer1_tl_0x35, layer1_tl_0x36, layer1_tl_0x37, layer1_tl_0x38, layer1_tl_0x39, layer1_tl_0x3A, layer1_tl_0x3B, layer1_tl_0x3C, layer1_tl_0x3D, layer1_tl_0x3E, layer1_tl_0x3F, layer1_tl_0x40, layer1_tl_0x41, layer1_tl_0x42, layer1_tl_0x43, layer1_tl_0x44, layer1_tl_0x45, layer1_tl_0x46, layer1_tl_0x47, layer1_tl_0x48, layer1_tl_0x49, layer1_tl_0x4A, layer1_tl_0x4B, layer1_tl_0x4C, layer1_tl_0x4D, layer1_tl_0x4E, layer1_tl_0x4F, layer1_tl_0x50, layer1_tl_0x51, layer1_tl_0x52, layer1_tl_0x53, layer1_tl_0x54, layer1_tl_0x55, layer1_tl_0x56, layer1_tl_0x57, layer1_tl_0x58, layer1_tl_0x59 };

// Partial Layer 2 const nat_ptr_t *layer2_scanMap[] = { layer2_tl_0x1B, layer2_tl_0x1C, layer2_tl_0x1D, layer2_tl_0x1E, layer2_tl_0x1F, layer2_tl_0x20, layer2_tl_0x21, layer2_tl_0x22, layer2_tl_0x23, layer2_tl_0x24, layer2_tl_0x25, layer2_tl_0x26, layer2_tl_0x27, layer2_tl_0x28, layer2_tl_0x29, layer2_tl_0x2A, layer2_tl_0x2B, layer2_tl_0x2C, layer2_tl_0x2D, layer2_tl_0x2E, layer2_tl_0x2F, layer2_tl_0x30, layer2_tl_0x31, layer2_tl_0x32, layer2_tl_0x33, layer2_tl_0x34, layer2_tl_0x35, layer2_tl_0x36, layer2_tl_0x37, layer2_tl_0x38, layer2_tl_0x39, layer2_tl_0x3A, layer2_tl_0x3B, layer2_tl_0x3C, layer2_tl_0x3D, layer2_tl_0x3E, layer2_tl_0x3F, layer2_tl_0x40, layer2_tl_0x41, layer2_tl_0x42, layer2_tl_0x43, layer2_tl_0x44, layer2_tl_0x45, layer2_tl_0x46, layer2_tl_0x47, layer2_tl_0x48, layer2_tl_0x49, layer2_tl_0x4A, layer2_tl_0x4B, layer2_tl_0x4C, layer2_tl_0x4D, layer2_tl_0x4E, layer2_tl_0x4F, layer2_tl_0x50, layer2_tl_0x51, layer2_tl_0x52, layer2_tl_0x53, layer2_tl_0x54, layer2_tl_0x55, layer2_tl_0x56, layer2_tl_0x57 };

// ----- Layer Index -----

// -- Layer Index List // // Index 0: Default map // Index n: Additional layers const Layer LayerIndex[] = { Layer_IN( default_scanMap, "D: MDErgo1 + lcdFuncMap", 0x02 ), Layer_IN( layer1_scanMap, "1: MDErgo1", 0x02 ), Layer_IN( layer2_scanMap, "2: MDErgo1", 0x1B ), };

// - Layer State uint8_t LayerState[ LayerNum ];

/* Copyright (C) 2014-2016 by Jacob Alexander *

// This file was generated by the kll compiler, DO NOT EDIT. // Generation Date: 2016-08-30 // KLL Backend: kiibohd // KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f // KLL Git Changes: None // Compiler arguments: // ../../kll/kll.py // /ergodox/controller/Scan/ISSILed/capabilities.kll // /ergodox/controller/Scan/MatrixARM/capabilities.kll // /ergodox/controller/Scan/STLcd/capabilities.kll // /ergodox/controller/Scan/UARTConnect/capabilities.kll // /ergodox/controller/Macro/PartialMap/capabilities.kll // /ergodox/controller/Output/pjrcUSB/capabilities.kll // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // -d // /ergodox/controller/kll/layouts/callaghp.kll // /ergodox/controller/kll/layouts/lcdFuncMap.kll // -p // /ergodox/controller/kll/layouts/callaghp1.kll // -p // /ergodox/controller/kll/layouts/callaghp2.kll // --backend // kiibohd // --templates // /ergodox/controller/kll/templates/kiibohdKeymap.h // /ergodox/controller/kll/templates/kiibohdDefs.h // --outputs // generatedKeymap.h // kll_defs.h // // - Base Layer - // ISSILedCapabilities // /ergodox/controller/Scan/ISSILed/capabilities.kll // MatrixArmCapabilities // /ergodox/controller/Scan/MatrixARM/capabilities.kll // STLcdCapabilities // /ergodox/controller/Scan/STLcd/capabilities.kll // UARTConnectCapabilities // /ergodox/controller/Scan/UARTConnect/capabilities.kll // PartialMapCapabilities // /ergodox/controller/Macro/PartialMap/capabilities.kll // pjrcUSBCapabilities // /ergodox/controller/Output/pjrcUSB/capabilities.kll // MDErgo1 // /ergodox/controller/Scan/Infinity_Ergodox/scancode_map.kll // MDErgo1LeftHand // /ergodox/controller/Scan/Infinity_Ergodox/leftHand.kll // MDErgo1Slave1 // /ergodox/controller/Scan/Infinity_Ergodox/slave1.kll // MDErgo1RightHand // /ergodox/controller/Scan/Infinity_Ergodox/rightHand.kll // - Default Layer - // MDErgo1 // /ergodox/controller/kll/layouts/callaghp.kll // lcdFuncMap // /ergodox/controller/kll/layouts/lcdFuncMap.kll // - Partial Layers - // Layer 1 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp1.kll // Layer 2 // MDErgo1 // /ergodox/controller/kll/layouts/callaghp2.kll

pragma once

// ----- Enums -----

// Capability Indices typedef enum CapabilityIndex { LCD_layerStackExact_capability_index, LCD_layerStack_capability_index, LED_control_capability_index, Macro_layerLatch_capability_index, Macro_layerLock_capability_index, Macro_layerRotate_capability_index, Macro_layerShift_capability_index, Macro_layerState_capability_index, Output_consCtrlSend_capability_index, Output_flashMode_capability_index, Output_kbdProtocolBoot_capability_index, Output_kbdProtocolNKRO_capability_index, Output_noneSend_capability_index, Output_sysCtrlSend_capability_index, Output_toggleKbdProtocol_capability_index, Output_usbCodeSend_capability_index, Output_usbMouse_capability_index, } CapabilityIndex;

// ----- KLL Variables -----

// ----- Defines -----

// -- Interconnect Node Maximum --

define InterconnectNodeMax 0x2

define STLcdNumber2Color_define 0x4B4B, 0x8D8D, 0x34B5

define enableVirtualSerialPort_define 1

define ISSILedMask1_define \

0xFF, 0x00, /\* C1-1 -> C1-16 _/ \
0xFF, 0x00, /_ C2-1 -> C2-16 _/ \
0xFF, 0x00, /_ C3-1 -> C3-16 _/ \
0xFF, 0x00, /_ C4-1 -> C4-16 _/ \
0x3F, 0x00, /_ C5-1 -> C5-16 _/ \
0x00, 0x00, /_ C6-1 -> C6-16 _/ \
0x00, 0x00, /_ C7-1 -> C7-16 _/ \
0x00, 0x00, /_ C8-1 -> C8-16 _/ \
0x00, 0x00, /_ C9-1 -> C9-16 */ \

define STLcdNumber4_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber2_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber8Color_define 0x8303, 0x1394, 0xB9F9

define UARTConnectBufSize_define 128

define STLcdNumber6_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0x00, 0x00, 0x00, \

define STLcdNumber0_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define ISSILedBrightness1_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* C1-1 -> C1-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C2-1 -> C2-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C3-1 -> C3-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C4-1 -> C4-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C5-1 -> C5-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C6-1 -> C6-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C7-1 -> C7-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C8-1 -> C8-16 / \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, / C9-1 -> C9-16 */ \

define STLcdNumber1Color_define 0xA8A8, 0x2727, 0x1FA0

define STLcdNumber7_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define UARTConnectBaudFine_define 0

define DebounceDivThreshold_define 65535

define STLcdNumber6Color_define 0xBCFC, 0xB6F6, 0x2D2D

define STLcdNumber3Color_define 0x0000, 0x8242, 0xB3F3

define DebounceThrottleDiv_define 0

define STLcdNumber9_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define STLcdNumber3_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define enableJoystick_define 0

define STLcdNumber7Color_define 0x00C1, 0x7E7E, 0x3C3C

define STLcdNumber4Color_define 0xF6F6, 0xA5A5, 0x4949

define IndexWordSize_define 16

define STLcdNumber0Color_define 0xB939, 0xAAEA, 0x8D8D

define STLcdNumber1_define \

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \

define enableUSBLowPowerNegotiation_define 0

define STLcdNumber9Color_define 0x09CA, 0x12D3, 0x8484

define STLcdBacklightPrescalar_define 0

define enableUSBResume_define 1

define StateWordSize_define 8

define STLcdNumber5Color_define 0xB7B7, 0x5D5D, 0x8545

define KeyboardLocale_define 0

define USBProtocol_define 1

define UARTConnectBaud_define 1

define ConnectEnabled_define 1

define LCDEnabled_define 1

define flashModeEnabled_define 0

define STLcdDefaultImage_define 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xe8, 0xb0, 0x58, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0xe8, 0xb8, 0xe8, 0xb0, 0x80, 0x00, 0x00, 0x00, 0xe0, 0x50, 0xa0, 0xf8, 0x50, 0x68, 0x38, 0x28, 0x70, 0x28, 0x50, 0xf0, 0x48, 0xa0, 0xd0, 0x18, 0x28, 0xf0, 0x58, 0xf0, 0x40, 0xa0, 0x80, 0x00, 0xc0, 0x50, 0xe8, 0xb8, 0x68, 0x30, 0x08, 0x00, 0x80, 0xe0, 0xd0, 0x68, 0xb0, 0x68, 0x38, 0x28, 0x50, 0x38, 0x50, 0x70, 0x50, 0xa0, 0x00, 0x00, 0x78, 0xd0, 0xb8, 0xe8, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0xe8, 0x50, 0xf8, 0x50, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbf, 0x6a, 0xd7, 0x7d, 0xa2, 0x40, 0x80, 0x00, 0x00, 0x00, 0x95, 0xef, 0xba, 0x75, 0xde, 0x20, 0x00, 0x7f, 0xab, 0xdd, 0x77, 0xd8, 0x28, 0x98, 0x14, 0x18, 0x28, 0x98, 0x70, 0xd8, 0xa8, 0xf9, 0x00, 0x03, 0x02, 0x04, 0x01, 0xc3, 0x6d, 0xb6, 0x5b, 0xee, 0x3b, 0xed, 0xb6, 0xd1, 0x60, 0x80, 0x80, 0x15, 0x6e, 0xdb, 0x76, 0xad, 0xd9, 0x30, 0x18, 0x14, 0x28, 0x18, 0x54, 0xf8, 0x48, 0xf4, 0x58, 0x00, 0x05, 0xbb, 0xf6, 0x5d, 0xf6, 0x88, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xd7, 0x3d, 0xeb, 0x5d, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x05, 0x07, 0x01, 0x06, 0x05, 0x06, 0x0b, 0x06, 0x05, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x05, 0x07, 0x04, 0x0f, 0x04, 0x0b, 0x06, 0x07, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x07, 0x05, 0x07, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x12, 0x25, 0x47, 0x8a, 0x06, 0x84, 0x01, 0x03, 0x05, 0x06, 0x0b, 0x06, 0x0d, 0x06, 0x0d, 0x07, 0x05, 0x03, 0x01, 0x00, 0x00, 0x80, 0x85, 0x86, 0x45, 0x47, 0x06, 0x41, 0x07, 0x05, 0x06, 0x0b, 0x05, 0x0f, 0x05, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x06, 0x04, 0x0c, 0x06, 0x08, 0x0c, 0x06, 0x0a, 0x04, 0x06, 0x03, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x12, 0x1c, 0x0a, 0x14, 0x2c, 0x30, 0x4c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

define enableDeviceRestartOnUSBTimeout_define 0

define enableMouse_define 1

define STLcdBacklightRed_define 4095

define STLcdBacklightBlue_define 4095

define STLcdNumber5_define \

0x00, 0x00, 0x00, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0x00, 0x00, 0x00, \

define STLcdNumber8_define \

0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, \

define StrobeDelay_define 0

define STLcdBacklightGreen_define 4095

define UARTConnectCableCheckLength_define 2

define enableUSBSuspend_define 1

define enableRawIO_define 0

define enableKeyboard_define 1

define MinDebounceTime_define 5

define CapabilitiesNum_KLL 17

define ResultMacroNum_KLL 116

define TriggerMacroNum_KLL 132

define LayerNum_KLL 3

haata commented 8 years ago

Where are you getting arm-none-eabi-gcc from? I haven't seen anything available for CentOS (6.8 or 7.2).

I'm attempting to setup a test environment to see what's up.

haata commented 8 years ago

Aha! I've managed to reproduce on CentOS 6.8.

No issue on CentOS 7.2 using the exact same arm-none-eabi compiler (https://launchpad.net/gcc-arm-embedded/+download).

Now let's see if I can find the issue.

haata commented 8 years ago

Yep, found it. Was due to...an ancient version of git. Hah.

define BCD_VERSION wasn't getting the value defined in buildvars.h

I'm working on a fix now to support git 1.7.1 which doesn't have git rev-list --count HEAD

haata commented 8 years ago

Fixed! b7b7fd1ee724b8831bb9a870efa76a26a8d080a8

Let me know if this issue still shows up.