Archived
1
0

i75 update

This commit is contained in:
di0ib 2016-11-11 08:23:59 -10:00
parent e74ed2bafd
commit e60d21c3c6
7 changed files with 1821 additions and 0 deletions

0
Keyboards/i75.bash Normal file → Executable file
View File

704
Keyboards/i75.gcc/Makefile Normal file
View File

@ -0,0 +1,704 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /mnt/1/share/i75/controller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /mnt/1/share/i75/controller/Keyboards/i75.gcc
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
/usr/bin/cmake -i .
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/1/share/i75/controller/Keyboards/i75.gcc/CMakeFiles /mnt/1/share/i75/controller/Keyboards/i75.gcc/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/1/share/i75/controller/Keyboards/i75.gcc/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named SizeAfter
# Build rule for target.
SizeAfter: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 SizeAfter
.PHONY : SizeAfter
# fast build rule for target.
SizeAfter/fast:
$(MAKE) -f CMakeFiles/SizeAfter.dir/build.make CMakeFiles/SizeAfter.dir/build
.PHONY : SizeAfter/fast
#=============================================================================
# Target rules for targets named kiibohd.elf
# Build rule for target.
kiibohd.elf: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 kiibohd.elf
.PHONY : kiibohd.elf
# fast build rule for target.
kiibohd.elf/fast:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/build
.PHONY : kiibohd.elf/fast
#=============================================================================
# Target rules for targets named kll_regen
# Build rule for target.
kll_regen: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 kll_regen
.PHONY : kll_regen
# fast build rule for target.
kll_regen/fast:
$(MAKE) -f CMakeFiles/kll_regen.dir/build.make CMakeFiles/kll_regen.dir/build
.PHONY : kll_regen/fast
Debug/cli/cli.o: Debug/cli/cli.c.o
.PHONY : Debug/cli/cli.o
# target to build an object file
Debug/cli/cli.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/cli/cli.c.o
.PHONY : Debug/cli/cli.c.o
Debug/cli/cli.i: Debug/cli/cli.c.i
.PHONY : Debug/cli/cli.i
# target to preprocess a source file
Debug/cli/cli.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/cli/cli.c.i
.PHONY : Debug/cli/cli.c.i
Debug/cli/cli.s: Debug/cli/cli.c.s
.PHONY : Debug/cli/cli.s
# target to generate assembly for a file
Debug/cli/cli.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/cli/cli.c.s
.PHONY : Debug/cli/cli.c.s
Debug/led/led.o: Debug/led/led.c.o
.PHONY : Debug/led/led.o
# target to build an object file
Debug/led/led.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/led/led.c.o
.PHONY : Debug/led/led.c.o
Debug/led/led.i: Debug/led/led.c.i
.PHONY : Debug/led/led.i
# target to preprocess a source file
Debug/led/led.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/led/led.c.i
.PHONY : Debug/led/led.c.i
Debug/led/led.s: Debug/led/led.c.s
.PHONY : Debug/led/led.s
# target to generate assembly for a file
Debug/led/led.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/led/led.c.s
.PHONY : Debug/led/led.c.s
Debug/print/print.o: Debug/print/print.c.o
.PHONY : Debug/print/print.o
# target to build an object file
Debug/print/print.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/print/print.c.o
.PHONY : Debug/print/print.c.o
Debug/print/print.i: Debug/print/print.c.i
.PHONY : Debug/print/print.i
# target to preprocess a source file
Debug/print/print.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/print/print.c.i
.PHONY : Debug/print/print.c.i
Debug/print/print.s: Debug/print/print.c.s
.PHONY : Debug/print/print.s
# target to generate assembly for a file
Debug/print/print.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Debug/print/print.c.s
.PHONY : Debug/print/print.c.s
Lib/delay.o: Lib/delay.c.o
.PHONY : Lib/delay.o
# target to build an object file
Lib/delay.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/delay.c.o
.PHONY : Lib/delay.c.o
Lib/delay.i: Lib/delay.c.i
.PHONY : Lib/delay.i
# target to preprocess a source file
Lib/delay.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/delay.c.i
.PHONY : Lib/delay.c.i
Lib/delay.s: Lib/delay.c.s
.PHONY : Lib/delay.s
# target to generate assembly for a file
Lib/delay.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/delay.c.s
.PHONY : Lib/delay.c.s
Lib/mk20dx.o: Lib/mk20dx.c.o
.PHONY : Lib/mk20dx.o
# target to build an object file
Lib/mk20dx.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.o
.PHONY : Lib/mk20dx.c.o
Lib/mk20dx.i: Lib/mk20dx.c.i
.PHONY : Lib/mk20dx.i
# target to preprocess a source file
Lib/mk20dx.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.i
.PHONY : Lib/mk20dx.c.i
Lib/mk20dx.s: Lib/mk20dx.c.s
.PHONY : Lib/mk20dx.s
# target to generate assembly for a file
Lib/mk20dx.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Lib/mk20dx.c.s
.PHONY : Lib/mk20dx.c.s
Macro/PartialMap/macro.o: Macro/PartialMap/macro.c.o
.PHONY : Macro/PartialMap/macro.o
# target to build an object file
Macro/PartialMap/macro.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.o
.PHONY : Macro/PartialMap/macro.c.o
Macro/PartialMap/macro.i: Macro/PartialMap/macro.c.i
.PHONY : Macro/PartialMap/macro.i
# target to preprocess a source file
Macro/PartialMap/macro.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.i
.PHONY : Macro/PartialMap/macro.c.i
Macro/PartialMap/macro.s: Macro/PartialMap/macro.c.s
.PHONY : Macro/PartialMap/macro.s
# target to generate assembly for a file
Macro/PartialMap/macro.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/macro.c.s
.PHONY : Macro/PartialMap/macro.c.s
Macro/PartialMap/result.o: Macro/PartialMap/result.c.o
.PHONY : Macro/PartialMap/result.o
# target to build an object file
Macro/PartialMap/result.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.o
.PHONY : Macro/PartialMap/result.c.o
Macro/PartialMap/result.i: Macro/PartialMap/result.c.i
.PHONY : Macro/PartialMap/result.i
# target to preprocess a source file
Macro/PartialMap/result.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.i
.PHONY : Macro/PartialMap/result.c.i
Macro/PartialMap/result.s: Macro/PartialMap/result.c.s
.PHONY : Macro/PartialMap/result.s
# target to generate assembly for a file
Macro/PartialMap/result.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/result.c.s
.PHONY : Macro/PartialMap/result.c.s
Macro/PartialMap/trigger.o: Macro/PartialMap/trigger.c.o
.PHONY : Macro/PartialMap/trigger.o
# target to build an object file
Macro/PartialMap/trigger.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.o
.PHONY : Macro/PartialMap/trigger.c.o
Macro/PartialMap/trigger.i: Macro/PartialMap/trigger.c.i
.PHONY : Macro/PartialMap/trigger.i
# target to preprocess a source file
Macro/PartialMap/trigger.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.i
.PHONY : Macro/PartialMap/trigger.c.i
Macro/PartialMap/trigger.s: Macro/PartialMap/trigger.c.s
.PHONY : Macro/PartialMap/trigger.s
# target to generate assembly for a file
Macro/PartialMap/trigger.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Macro/PartialMap/trigger.c.s
.PHONY : Macro/PartialMap/trigger.c.s
Output/pjrcUSB/arm/usb_desc.o: Output/pjrcUSB/arm/usb_desc.c.o
.PHONY : Output/pjrcUSB/arm/usb_desc.o
# target to build an object file
Output/pjrcUSB/arm/usb_desc.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.o
.PHONY : Output/pjrcUSB/arm/usb_desc.c.o
Output/pjrcUSB/arm/usb_desc.i: Output/pjrcUSB/arm/usb_desc.c.i
.PHONY : Output/pjrcUSB/arm/usb_desc.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_desc.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.i
.PHONY : Output/pjrcUSB/arm/usb_desc.c.i
Output/pjrcUSB/arm/usb_desc.s: Output/pjrcUSB/arm/usb_desc.c.s
.PHONY : Output/pjrcUSB/arm/usb_desc.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_desc.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_desc.c.s
.PHONY : Output/pjrcUSB/arm/usb_desc.c.s
Output/pjrcUSB/arm/usb_dev.o: Output/pjrcUSB/arm/usb_dev.c.o
.PHONY : Output/pjrcUSB/arm/usb_dev.o
# target to build an object file
Output/pjrcUSB/arm/usb_dev.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_dev.c.o
.PHONY : Output/pjrcUSB/arm/usb_dev.c.o
Output/pjrcUSB/arm/usb_dev.i: Output/pjrcUSB/arm/usb_dev.c.i
.PHONY : Output/pjrcUSB/arm/usb_dev.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_dev.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_dev.c.i
.PHONY : Output/pjrcUSB/arm/usb_dev.c.i
Output/pjrcUSB/arm/usb_dev.s: Output/pjrcUSB/arm/usb_dev.c.s
.PHONY : Output/pjrcUSB/arm/usb_dev.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_dev.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_dev.c.s
.PHONY : Output/pjrcUSB/arm/usb_dev.c.s
Output/pjrcUSB/arm/usb_joystick.o: Output/pjrcUSB/arm/usb_joystick.c.o
.PHONY : Output/pjrcUSB/arm/usb_joystick.o
# target to build an object file
Output/pjrcUSB/arm/usb_joystick.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_joystick.c.o
.PHONY : Output/pjrcUSB/arm/usb_joystick.c.o
Output/pjrcUSB/arm/usb_joystick.i: Output/pjrcUSB/arm/usb_joystick.c.i
.PHONY : Output/pjrcUSB/arm/usb_joystick.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_joystick.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_joystick.c.i
.PHONY : Output/pjrcUSB/arm/usb_joystick.c.i
Output/pjrcUSB/arm/usb_joystick.s: Output/pjrcUSB/arm/usb_joystick.c.s
.PHONY : Output/pjrcUSB/arm/usb_joystick.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_joystick.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_joystick.c.s
.PHONY : Output/pjrcUSB/arm/usb_joystick.c.s
Output/pjrcUSB/arm/usb_keyboard.o: Output/pjrcUSB/arm/usb_keyboard.c.o
.PHONY : Output/pjrcUSB/arm/usb_keyboard.o
# target to build an object file
Output/pjrcUSB/arm/usb_keyboard.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_keyboard.c.o
.PHONY : Output/pjrcUSB/arm/usb_keyboard.c.o
Output/pjrcUSB/arm/usb_keyboard.i: Output/pjrcUSB/arm/usb_keyboard.c.i
.PHONY : Output/pjrcUSB/arm/usb_keyboard.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_keyboard.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_keyboard.c.i
.PHONY : Output/pjrcUSB/arm/usb_keyboard.c.i
Output/pjrcUSB/arm/usb_keyboard.s: Output/pjrcUSB/arm/usb_keyboard.c.s
.PHONY : Output/pjrcUSB/arm/usb_keyboard.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_keyboard.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_keyboard.c.s
.PHONY : Output/pjrcUSB/arm/usb_keyboard.c.s
Output/pjrcUSB/arm/usb_mem.o: Output/pjrcUSB/arm/usb_mem.c.o
.PHONY : Output/pjrcUSB/arm/usb_mem.o
# target to build an object file
Output/pjrcUSB/arm/usb_mem.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mem.c.o
.PHONY : Output/pjrcUSB/arm/usb_mem.c.o
Output/pjrcUSB/arm/usb_mem.i: Output/pjrcUSB/arm/usb_mem.c.i
.PHONY : Output/pjrcUSB/arm/usb_mem.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_mem.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mem.c.i
.PHONY : Output/pjrcUSB/arm/usb_mem.c.i
Output/pjrcUSB/arm/usb_mem.s: Output/pjrcUSB/arm/usb_mem.c.s
.PHONY : Output/pjrcUSB/arm/usb_mem.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_mem.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mem.c.s
.PHONY : Output/pjrcUSB/arm/usb_mem.c.s
Output/pjrcUSB/arm/usb_mouse.o: Output/pjrcUSB/arm/usb_mouse.c.o
.PHONY : Output/pjrcUSB/arm/usb_mouse.o
# target to build an object file
Output/pjrcUSB/arm/usb_mouse.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mouse.c.o
.PHONY : Output/pjrcUSB/arm/usb_mouse.c.o
Output/pjrcUSB/arm/usb_mouse.i: Output/pjrcUSB/arm/usb_mouse.c.i
.PHONY : Output/pjrcUSB/arm/usb_mouse.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_mouse.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mouse.c.i
.PHONY : Output/pjrcUSB/arm/usb_mouse.c.i
Output/pjrcUSB/arm/usb_mouse.s: Output/pjrcUSB/arm/usb_mouse.c.s
.PHONY : Output/pjrcUSB/arm/usb_mouse.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_mouse.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_mouse.c.s
.PHONY : Output/pjrcUSB/arm/usb_mouse.c.s
Output/pjrcUSB/arm/usb_rawio.o: Output/pjrcUSB/arm/usb_rawio.c.o
.PHONY : Output/pjrcUSB/arm/usb_rawio.o
# target to build an object file
Output/pjrcUSB/arm/usb_rawio.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_rawio.c.o
.PHONY : Output/pjrcUSB/arm/usb_rawio.c.o
Output/pjrcUSB/arm/usb_rawio.i: Output/pjrcUSB/arm/usb_rawio.c.i
.PHONY : Output/pjrcUSB/arm/usb_rawio.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_rawio.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_rawio.c.i
.PHONY : Output/pjrcUSB/arm/usb_rawio.c.i
Output/pjrcUSB/arm/usb_rawio.s: Output/pjrcUSB/arm/usb_rawio.c.s
.PHONY : Output/pjrcUSB/arm/usb_rawio.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_rawio.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_rawio.c.s
.PHONY : Output/pjrcUSB/arm/usb_rawio.c.s
Output/pjrcUSB/arm/usb_serial.o: Output/pjrcUSB/arm/usb_serial.c.o
.PHONY : Output/pjrcUSB/arm/usb_serial.o
# target to build an object file
Output/pjrcUSB/arm/usb_serial.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_serial.c.o
.PHONY : Output/pjrcUSB/arm/usb_serial.c.o
Output/pjrcUSB/arm/usb_serial.i: Output/pjrcUSB/arm/usb_serial.c.i
.PHONY : Output/pjrcUSB/arm/usb_serial.i
# target to preprocess a source file
Output/pjrcUSB/arm/usb_serial.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_serial.c.i
.PHONY : Output/pjrcUSB/arm/usb_serial.c.i
Output/pjrcUSB/arm/usb_serial.s: Output/pjrcUSB/arm/usb_serial.c.s
.PHONY : Output/pjrcUSB/arm/usb_serial.s
# target to generate assembly for a file
Output/pjrcUSB/arm/usb_serial.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/arm/usb_serial.c.s
.PHONY : Output/pjrcUSB/arm/usb_serial.c.s
Output/pjrcUSB/output_com.o: Output/pjrcUSB/output_com.c.o
.PHONY : Output/pjrcUSB/output_com.o
# target to build an object file
Output/pjrcUSB/output_com.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.o
.PHONY : Output/pjrcUSB/output_com.c.o
Output/pjrcUSB/output_com.i: Output/pjrcUSB/output_com.c.i
.PHONY : Output/pjrcUSB/output_com.i
# target to preprocess a source file
Output/pjrcUSB/output_com.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.i
.PHONY : Output/pjrcUSB/output_com.c.i
Output/pjrcUSB/output_com.s: Output/pjrcUSB/output_com.c.s
.PHONY : Output/pjrcUSB/output_com.s
# target to generate assembly for a file
Output/pjrcUSB/output_com.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Output/pjrcUSB/output_com.c.s
.PHONY : Output/pjrcUSB/output_com.c.s
Scan/MatrixARM/matrix_scan.o: Scan/MatrixARM/matrix_scan.c.o
.PHONY : Scan/MatrixARM/matrix_scan.o
# target to build an object file
Scan/MatrixARM/matrix_scan.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.o
.PHONY : Scan/MatrixARM/matrix_scan.c.o
Scan/MatrixARM/matrix_scan.i: Scan/MatrixARM/matrix_scan.c.i
.PHONY : Scan/MatrixARM/matrix_scan.i
# target to preprocess a source file
Scan/MatrixARM/matrix_scan.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.i
.PHONY : Scan/MatrixARM/matrix_scan.c.i
Scan/MatrixARM/matrix_scan.s: Scan/MatrixARM/matrix_scan.c.s
.PHONY : Scan/MatrixARM/matrix_scan.s
# target to generate assembly for a file
Scan/MatrixARM/matrix_scan.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/MatrixARM/matrix_scan.c.s
.PHONY : Scan/MatrixARM/matrix_scan.c.s
Scan/i75/scan_loop.o: Scan/i75/scan_loop.c.o
.PHONY : Scan/i75/scan_loop.o
# target to build an object file
Scan/i75/scan_loop.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/i75/scan_loop.c.o
.PHONY : Scan/i75/scan_loop.c.o
Scan/i75/scan_loop.i: Scan/i75/scan_loop.c.i
.PHONY : Scan/i75/scan_loop.i
# target to preprocess a source file
Scan/i75/scan_loop.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/i75/scan_loop.c.i
.PHONY : Scan/i75/scan_loop.c.i
Scan/i75/scan_loop.s: Scan/i75/scan_loop.c.s
.PHONY : Scan/i75/scan_loop.s
# target to generate assembly for a file
Scan/i75/scan_loop.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/Scan/i75/scan_loop.c.s
.PHONY : Scan/i75/scan_loop.c.s
main.o: main.c.o
.PHONY : main.o
# target to build an object file
main.c.o:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/main.c.o
.PHONY : main.c.o
main.i: main.c.i
.PHONY : main.i
# target to preprocess a source file
main.c.i:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/main.c.i
.PHONY : main.c.i
main.s: main.c.s
.PHONY : main.s
# target to generate assembly for a file
main.c.s:
$(MAKE) -f CMakeFiles/kiibohd.elf.dir/build.make CMakeFiles/kiibohd.elf.dir/main.c.s
.PHONY : main.c.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... SizeAfter"
@echo "... edit_cache"
@echo "... kiibohd.elf"
@echo "... kll_regen"
@echo "... rebuild_cache"
@echo "... Debug/cli/cli.o"
@echo "... Debug/cli/cli.i"
@echo "... Debug/cli/cli.s"
@echo "... Debug/led/led.o"
@echo "... Debug/led/led.i"
@echo "... Debug/led/led.s"
@echo "... Debug/print/print.o"
@echo "... Debug/print/print.i"
@echo "... Debug/print/print.s"
@echo "... Lib/delay.o"
@echo "... Lib/delay.i"
@echo "... Lib/delay.s"
@echo "... Lib/mk20dx.o"
@echo "... Lib/mk20dx.i"
@echo "... Lib/mk20dx.s"
@echo "... Macro/PartialMap/macro.o"
@echo "... Macro/PartialMap/macro.i"
@echo "... Macro/PartialMap/macro.s"
@echo "... Macro/PartialMap/result.o"
@echo "... Macro/PartialMap/result.i"
@echo "... Macro/PartialMap/result.s"
@echo "... Macro/PartialMap/trigger.o"
@echo "... Macro/PartialMap/trigger.i"
@echo "... Macro/PartialMap/trigger.s"
@echo "... Output/pjrcUSB/arm/usb_desc.o"
@echo "... Output/pjrcUSB/arm/usb_desc.i"
@echo "... Output/pjrcUSB/arm/usb_desc.s"
@echo "... Output/pjrcUSB/arm/usb_dev.o"
@echo "... Output/pjrcUSB/arm/usb_dev.i"
@echo "... Output/pjrcUSB/arm/usb_dev.s"
@echo "... Output/pjrcUSB/arm/usb_joystick.o"
@echo "... Output/pjrcUSB/arm/usb_joystick.i"
@echo "... Output/pjrcUSB/arm/usb_joystick.s"
@echo "... Output/pjrcUSB/arm/usb_keyboard.o"
@echo "... Output/pjrcUSB/arm/usb_keyboard.i"
@echo "... Output/pjrcUSB/arm/usb_keyboard.s"
@echo "... Output/pjrcUSB/arm/usb_mem.o"
@echo "... Output/pjrcUSB/arm/usb_mem.i"
@echo "... Output/pjrcUSB/arm/usb_mem.s"
@echo "... Output/pjrcUSB/arm/usb_mouse.o"
@echo "... Output/pjrcUSB/arm/usb_mouse.i"
@echo "... Output/pjrcUSB/arm/usb_mouse.s"
@echo "... Output/pjrcUSB/arm/usb_rawio.o"
@echo "... Output/pjrcUSB/arm/usb_rawio.i"
@echo "... Output/pjrcUSB/arm/usb_rawio.s"
@echo "... Output/pjrcUSB/arm/usb_serial.o"
@echo "... Output/pjrcUSB/arm/usb_serial.i"
@echo "... Output/pjrcUSB/arm/usb_serial.s"
@echo "... Output/pjrcUSB/output_com.o"
@echo "... Output/pjrcUSB/output_com.i"
@echo "... Output/pjrcUSB/output_com.s"
@echo "... Scan/MatrixARM/matrix_scan.o"
@echo "... Scan/MatrixARM/matrix_scan.i"
@echo "... Scan/MatrixARM/matrix_scan.s"
@echo "... Scan/i75/scan_loop.o"
@echo "... Scan/i75/scan_loop.i"
@echo "... Scan/i75/scan_loop.s"
@echo "... main.o"
@echo "... main.i"
@echo "... main.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

View File

@ -0,0 +1,60 @@
/* Copyright (C) 2013-2016 by Jacob Alexander
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#pragma once
// ----- Includes -----
// ----- Defines -----
// You can change these to give your code its own name.
#define STR_MANUFACTURER L"Kiibohd"
#define STR_PRODUCT L"Keyboard - i75 PartialMap pjrcUSB full"
#define STR_SERIAL L"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - mk20dx256"
// Strings used in the CLI module
#define CLI_Revision "e74ed2bafd1f7f675403930f1bdbbe1918f3d62e"
#define CLI_Branch "master"
#define CLI_ModifiedStatus "Dirty"
#define CLI_ModifiedFiles "\r\n\tKeyboards/i75.bash"
#define CLI_RepoOrigin "https://github.com/di0ib/controller.git"
#define CLI_CommitDate "2016-11-11 08:10:25 -1000"
#define CLI_CommitAuthor "di0ib <g1@porkhash.org>"
#define CLI_Modules "Scan(i75) Macro(PartialMap) Output(pjrcUSB) Debug(full)"
#define CLI_BuildDate "2016-11-11 08:14:27 -1000"
#define CLI_BuildOS "Linux-3.13.0-32-generic"
#define CLI_Arch "arm"
#define CLI_Chip "mk20dx256"
#define CLI_CPU "cortex-m4"
#define CLI_Device "Keyboard"
// Mac OS-X and Linux automatically load the correct drivers. On
// Windows, even though the driver is supplied by Microsoft, an
// INF file is needed to load the driver. These numbers need to
// match the INF file.
#define VENDOR_ID 0x1C11
#define PRODUCT_ID 0xB04D
#define BCD_VERSION 483

View File

@ -0,0 +1 @@
arm

View File

@ -0,0 +1,846 @@
/* Copyright (C) 2014-2016 by Jacob Alexander
*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this file. If not, see <http://www.gnu.org/licenses/>.
*/
// This file was generated by the kll compiler, DO NOT EDIT.
// Generation Date: 2016-11-11
// KLL Backend: kiibohd
// KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f
// KLL Git Changes: None
// Compiler arguments:
// ../../kll/kll.py
// /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
// /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
// /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
// /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
// -d
// /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
// /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
// -p
// /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
// -p
// /mnt/1/share/i75/controller/kll/layouts/colemak.kll
// --backend
// kiibohd
// --templates
// /mnt/1/share/i75/controller/kll/templates/kiibohdKeymap.h
// /mnt/1/share/i75/controller/kll/templates/kiibohdDefs.h
// --outputs
// generatedKeymap.h
// kll_defs.h
//
// - Base Layer -
// MatrixArmCapabilities
// /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
// PartialMapCapabilities
// /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
// pjrcUSBCapabilities
// /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
// MD1
// /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
// - Default Layer -
// md1Overlay
// /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
// stdFuncMap
// /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
// - Partial Layers -
// Layer 1
// hhkbpro2
// /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
// Layer 2
// colemak
// /mnt/1/share/i75/controller/kll/layouts/colemak.kll
#pragma once
// ----- Includes -----
// KLL Include
#include <kll.h>
// ----- Capabilities -----
// Capability function declarations
void CustomAction_action1_capability( uint8_t state, uint8_t stateType, uint8_t *args );
void CustomAction_blockHold_capability( uint8_t state, uint8_t stateType, uint8_t *args );
void CustomAction_blockKey_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[] = {
{ CustomAction_action1_capability, 0 },
{ CustomAction_blockHold_capability, 1 },
{ CustomAction_blockKey_capability, 1 },
{ 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_4, 0 };
Guide_RM( 1 ) = { 1, 15, KEY_K, 0 };
Guide_RM( 2 ) = { 1, 15, KEY_TAB, 0 };
Guide_RM( 3 ) = { 1, 15, KEY_RSHIFT, 0 };
Guide_RM( 4 ) = { 1, 15, KEY_R, 0 };
Guide_RM( 5 ) = { 1, 15, KEY_COMMA, 0 };
Guide_RM( 6 ) = { 1, 15, KEY_ESC, 0 };
Guide_RM( 7 ) = { 1, 15, KEY_F, 0 };
Guide_RM( 8 ) = { 1, 15, KEY_T, 0 };
Guide_RM( 9 ) = { 1, 15, KEY_PERIOD, 0 };
Guide_RM( 10 ) = { 1, 15, KEY_A, 0 };
Guide_RM( 11 ) = { 1, 15, KEY_LEFT, 0 };
Guide_RM( 12 ) = { 1, 15, KEY_1, 0 };
Guide_RM( 13 ) = { 1, 15, KEY_G, 0 };
Guide_RM( 14 ) = { 1, 15, KEY_RALT, 0 };
Guide_RM( 15 ) = { 1, 15, KEY_Q, 0 };
Guide_RM( 16 ) = { 1, 15, KEY_DOWN, 0 };
Guide_RM( 17 ) = { 1, 15, KEY_B, 0 };
Guide_RM( 18 ) = { 1, 15, KEY_H, 0 };
Guide_RM( 19 ) = { 1, 15, KEY_BACKSPACE, 0 };
Guide_RM( 20 ) = { 1, 15, KEY_RGUI, 0 };
Guide_RM( 21 ) = { 1, 15, KEY_X, 0 };
Guide_RM( 22 ) = { 1, 15, KEY_W, 0 };
Guide_RM( 23 ) = { 1, 15, KEY_N, 0 };
Guide_RM( 24 ) = { 1, 15, KEY_S, 0 };
Guide_RM( 25 ) = { 1, 15, KEY_SPACE, 0 };
Guide_RM( 26 ) = { 1, 15, KEY_M, 0 };
Guide_RM( 27 ) = { 1, 15, KEY_DELETE, 0 };
Guide_RM( 28 ) = { 1, 15, KEY_APP, 0 };
Guide_RM( 29 ) = { 1, 15, KEY_D, 0 };
Guide_RM( 30 ) = { 1, 15, KEY_0, 0 };
Guide_RM( 31 ) = { 1, 15, KEY_CAPS_LOCK, 0 };
Guide_RM( 32 ) = { 1, 15, KEY_7, 0 };
Guide_RM( 33 ) = { 1, 15, KEY_C, 0 };
Guide_RM( 34 ) = { 1, 15, KEY_MINUS, 0 };
Guide_RM( 35 ) = { 1, 6, 1, 0, 0 };
Guide_RM( 36 ) = { 1, 15, KEY_LSHIFT, 0 };
Guide_RM( 37 ) = { 1, 15, KEY_V, 0 };
Guide_RM( 38 ) = { 1, 15, KEY_LEFT_BRACKET, 0 };
Guide_RM( 39 ) = { 1, 15, KEY_EQUAL, 0 };
Guide_RM( 40 ) = { 1, 15, KEY_Z, 0 };
Guide_RM( 41 ) = { 1, 15, KEY_I, 0 };
Guide_RM( 42 ) = { 1, 15, KEY_RIGHT_BRACKET, 0 };
Guide_RM( 43 ) = { 1, 15, KEY_LGUI, 0 };
Guide_RM( 44 ) = { 1, 15, KEY_8, 0 };
Guide_RM( 45 ) = { 1, 15, KEY_ENTER, 0 };
Guide_RM( 46 ) = { 1, 15, KEY_BACKSLASH, 0 };
Guide_RM( 47 ) = { 1, 15, KEY_5, 0 };
Guide_RM( 48 ) = { 1, 15, KEY_LALT, 0 };
Guide_RM( 49 ) = { 1, 15, KEY_L, 0 };
Guide_RM( 50 ) = { 1, 15, KEY_9, 0 };
Guide_RM( 51 ) = { 1, 15, KEY_6, 0 };
Guide_RM( 52 ) = { 1, 15, KEY_O, 0 };
Guide_RM( 53 ) = { 1, 15, KEY_UP, 0 };
Guide_RM( 54 ) = { 1, 15, KEY_PAGE_UP, 0 };
Guide_RM( 55 ) = { 1, 15, KEY_Y, 0 };
Guide_RM( 56 ) = { 1, 15, KEY_SLASH, 0 };
Guide_RM( 57 ) = { 1, 15, KEY_P, 0 };
Guide_RM( 58 ) = { 1, 15, KEY_2, 0 };
Guide_RM( 59 ) = { 1, 15, KEY_PAGE_DOWN, 0 };
Guide_RM( 60 ) = { 1, 15, KEY_U, 0 };
Guide_RM( 61 ) = { 1, 15, KEY_SEMICOLON, 0 };
Guide_RM( 62 ) = { 1, 15, KEY_RIGHT, 0 };
Guide_RM( 63 ) = { 1, 15, KEY_3, 0 };
Guide_RM( 64 ) = { 1, 15, KEY_LCTRL, 0 };
Guide_RM( 65 ) = { 1, 15, KEY_J, 0 };
Guide_RM( 66 ) = { 1, 15, KEY_RCTRL, 0 };
Guide_RM( 67 ) = { 1, 15, KEY_QUOTE, 0 };
Guide_RM( 68 ) = { 1, 15, KEY_E, 0 };
Guide_RM( 69 ) = { 1, 15, KEY_F4, 0 };
Guide_RM( 70 ) = { 1, 15, KEY_HOME, 0 };
Guide_RM( 71 ) = { 1, 15, KEY_END, 0 };
Guide_RM( 72 ) = { 1, 8, 184, 0, 0 };
Guide_RM( 73 ) = { 1, 8, 234, 0, 0 };
Guide_RM( 74 ) = { 1, 15, KEY_F1, 0 };
Guide_RM( 75 ) = { 1, 15, KEYPAD_ASTERISK, 0 };
Guide_RM( 76 ) = { 1, 9, 0 };
Guide_RM( 77 ) = { 1, 15, KEYPAD_PLUS, 0 };
Guide_RM( 78 ) = { 1, 8, 233, 0, 0 };
Guide_RM( 79 ) = { 1, 15, KEYPAD_MINUS, 0 };
Guide_RM( 80 ) = { 1, 8, 226, 0, 0 };
Guide_RM( 81 ) = { 1, 15, KEY_F10, 0 };
Guide_RM( 82 ) = { 1, 15, KEY_F7, 0 };
Guide_RM( 83 ) = { 1, 15, KEY_F11, 0 };
Guide_RM( 84 ) = { 1, 15, KEY_F12, 0 };
Guide_RM( 85 ) = { 1, 15, KEY_PRINTSCREEN, 0 };
Guide_RM( 86 ) = { 1, 15, KEY_F8, 0 };
Guide_RM( 87 ) = { 1, 15, KEY_INSERT, 0 };
Guide_RM( 88 ) = { 1, 15, KEY_F5, 0 };
Guide_RM( 89 ) = { 1, 15, KEY_F9, 0 };
Guide_RM( 90 ) = { 1, 15, KEY_F6, 0 };
Guide_RM( 91 ) = { 1, 15, KEY_SCROLL_LOCK, 0 };
Guide_RM( 92 ) = { 1, 15, KEY_PAUSE, 0 };
Guide_RM( 93 ) = { 1, 15, KEY_F2, 0 };
Guide_RM( 94 ) = { 1, 15, KEY_F3, 0 };
Guide_RM( 95 ) = { 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 ),
};
// -- 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, 0x04, 0 };
Guide_TM( 1 ) = { 1, 0x00, 0x01, 0x26, 0 };
Guide_TM( 2 ) = { 1, 0x00, 0x01, 0x0F, 0 };
Guide_TM( 3 ) = { 1, 0x00, 0x01, 0x38, 0 };
Guide_TM( 4 ) = { 1, 0x00, 0x01, 0x13, 0 };
Guide_TM( 5 ) = { 1, 0x00, 0x01, 0x35, 0 };
Guide_TM( 6 ) = { 1, 0x00, 0x01, 0x00, 0 };
Guide_TM( 7 ) = { 1, 0x00, 0x01, 0x39, 0 };
Guide_TM( 8 ) = { 1, 0x00, 0x01, 0x22, 0 };
Guide_TM( 9 ) = { 1, 0x00, 0x01, 0x14, 0 };
Guide_TM( 10 ) = { 1, 0x00, 0x01, 0x36, 0 };
Guide_TM( 11 ) = { 1, 0x00, 0x01, 0x1F, 0 };
Guide_TM( 12 ) = { 1, 0x00, 0x01, 0x48, 0 };
Guide_TM( 13 ) = { 1, 0x00, 0x01, 0x01, 0 };
Guide_TM( 14 ) = { 1, 0x00, 0x01, 0x23, 0 };
Guide_TM( 15 ) = { 1, 0x00, 0x01, 0x45, 0 };
Guide_TM( 16 ) = { 1, 0x00, 0x01, 0x10, 0 };
Guide_TM( 17 ) = { 1, 0x00, 0x01, 0x49, 0 };
Guide_TM( 18 ) = { 1, 0x00, 0x01, 0x32, 0 };
Guide_TM( 19 ) = { 1, 0x00, 0x01, 0x24, 0 };
Guide_TM( 20 ) = { 1, 0x00, 0x01, 0x0D, 0 };
Guide_TM( 21 ) = { 1, 0x00, 0x01, 0x46, 0 };
Guide_TM( 22 ) = { 1, 0x00, 0x01, 0x2F, 0 };
Guide_TM( 23 ) = { 1, 0x00, 0x01, 0x11, 0 };
Guide_TM( 24 ) = { 1, 0x00, 0x01, 0x33, 0 };
Guide_TM( 25 ) = { 1, 0x00, 0x01, 0x0E, 0 };
Guide_TM( 26 ) = { 1, 0x00, 0x01, 0x20, 0 };
Guide_TM( 27 ) = { 1, 0x00, 0x01, 0x42, 0 };
Guide_TM( 28 ) = { 1, 0x00, 0x01, 0x34, 0 };
Guide_TM( 29 ) = { 1, 0x00, 0x01, 0x1D, 0 };
Guide_TM( 30 ) = { 1, 0x00, 0x01, 0x3F, 0 };
Guide_TM( 31 ) = { 1, 0x00, 0x01, 0x21, 0 };
Guide_TM( 32 ) = { 1, 0x00, 0x01, 0x0A, 0 };
Guide_TM( 33 ) = { 1, 0x00, 0x01, 0x43, 0 };
Guide_TM( 34 ) = { 1, 0x00, 0x01, 0x1E, 0 };
Guide_TM( 35 ) = { 1, 0x00, 0x01, 0x07, 0 };
Guide_TM( 36 ) = { 1, 0x00, 0x01, 0x30, 0 };
Guide_TM( 37 ) = { 1, 0x00, 0x01, 0x0B, 0 };
Guide_TM( 38 ) = { 1, 0x00, 0x01, 0x44, 0 };
Guide_TM( 39 ) = { 1, 0x00, 0x01, 0x2D, 0 };
Guide_TM( 40 ) = { 1, 0x00, 0x01, 0x31, 0 };
Guide_TM( 41 ) = { 1, 0x00, 0x01, 0x1A, 0 };
Guide_TM( 42 ) = { 1, 0x00, 0x01, 0x0C, 0 };
Guide_TM( 43 ) = { 1, 0x00, 0x01, 0x2E, 0 };
Guide_TM( 44 ) = { 1, 0x00, 0x01, 0x17, 0 };
Guide_TM( 45 ) = { 1, 0x00, 0x01, 0x40, 0 };
Guide_TM( 46 ) = { 1, 0x00, 0x01, 0x1B, 0 };
Guide_TM( 47 ) = { 1, 0x00, 0x01, 0x3D, 0 };
Guide_TM( 48 ) = { 1, 0x00, 0x01, 0x08, 0 };
Guide_TM( 49 ) = { 1, 0x00, 0x01, 0x41, 0 };
Guide_TM( 50 ) = { 1, 0x00, 0x01, 0x2A, 0 };
Guide_TM( 51 ) = { 1, 0x00, 0x01, 0x1C, 0 };
Guide_TM( 52 ) = { 1, 0x00, 0x01, 0x05, 0 };
Guide_TM( 53 ) = { 1, 0x00, 0x01, 0x3E, 0 };
Guide_TM( 54 ) = { 1, 0x00, 0x01, 0x27, 0 };
Guide_TM( 55 ) = { 1, 0x00, 0x01, 0x09, 0 };
Guide_TM( 56 ) = { 1, 0x00, 0x01, 0x2B, 0 };
Guide_TM( 57 ) = { 1, 0x00, 0x01, 0x06, 0 };
Guide_TM( 58 ) = { 1, 0x00, 0x01, 0x18, 0 };
Guide_TM( 59 ) = { 1, 0x00, 0x01, 0x3A, 0 };
Guide_TM( 60 ) = { 1, 0x00, 0x01, 0x2C, 0 };
Guide_TM( 61 ) = { 1, 0x00, 0x01, 0x15, 0 };
Guide_TM( 62 ) = { 1, 0x00, 0x01, 0x37, 0 };
Guide_TM( 63 ) = { 1, 0x00, 0x01, 0x19, 0 };
Guide_TM( 64 ) = { 1, 0x00, 0x01, 0x02, 0 };
Guide_TM( 65 ) = { 1, 0x00, 0x01, 0x3B, 0 };
Guide_TM( 66 ) = { 1, 0x00, 0x01, 0x16, 0 };
Guide_TM( 67 ) = { 1, 0x00, 0x01, 0x28, 0 };
Guide_TM( 68 ) = { 1, 0x00, 0x01, 0x4A, 0 };
Guide_TM( 69 ) = { 1, 0x00, 0x01, 0x03, 0 };
Guide_TM( 70 ) = { 1, 0x00, 0x01, 0x3C, 0 };
Guide_TM( 71 ) = { 1, 0x00, 0x01, 0x25, 0 };
Guide_TM( 72 ) = { 1, 0x00, 0x01, 0x47, 0 };
Guide_TM( 73 ) = { 1, 0x00, 0x01, 0x29, 0 };
Guide_TM( 74 ) = { 1, 0x00, 0x01, 0x12, 0 };
Guide_TM( 75 ) = { 1, 0x00, 0x01, 0x04, 0 };
Guide_TM( 76 ) = { 1, 0x00, 0x01, 0x26, 0 };
Guide_TM( 77 ) = { 1, 0x00, 0x01, 0x0F, 0 };
Guide_TM( 78 ) = { 1, 0x00, 0x01, 0x35, 0 };
Guide_TM( 79 ) = { 1, 0x00, 0x01, 0x22, 0 };
Guide_TM( 80 ) = { 1, 0x00, 0x01, 0x36, 0 };
Guide_TM( 81 ) = { 1, 0x00, 0x01, 0x1F, 0 };
Guide_TM( 82 ) = { 1, 0x00, 0x01, 0x01, 0 };
Guide_TM( 83 ) = { 1, 0x00, 0x01, 0x24, 0 };
Guide_TM( 84 ) = { 1, 0x00, 0x01, 0x11, 0 };
Guide_TM( 85 ) = { 1, 0x00, 0x01, 0x33, 0 };
Guide_TM( 86 ) = { 1, 0x00, 0x01, 0x20, 0 };
Guide_TM( 87 ) = { 1, 0x00, 0x01, 0x34, 0 };
Guide_TM( 88 ) = { 1, 0x00, 0x01, 0x21, 0 };
Guide_TM( 89 ) = { 1, 0x00, 0x01, 0x0A, 0 };
Guide_TM( 90 ) = { 1, 0x00, 0x01, 0x07, 0 };
Guide_TM( 91 ) = { 1, 0x00, 0x01, 0x0B, 0 };
Guide_TM( 92 ) = { 1, 0x00, 0x01, 0x1A, 0 };
Guide_TM( 93 ) = { 1, 0x00, 0x01, 0x0C, 0 };
Guide_TM( 94 ) = { 1, 0x00, 0x01, 0x17, 0 };
Guide_TM( 95 ) = { 1, 0x00, 0x01, 0x08, 0 };
Guide_TM( 96 ) = { 1, 0x00, 0x01, 0x1C, 0 };
Guide_TM( 97 ) = { 1, 0x00, 0x01, 0x05, 0 };
Guide_TM( 98 ) = { 1, 0x00, 0x01, 0x27, 0 };
Guide_TM( 99 ) = { 1, 0x00, 0x01, 0x09, 0 };
Guide_TM( 100 ) = { 1, 0x00, 0x01, 0x06, 0 };
Guide_TM( 101 ) = { 1, 0x00, 0x01, 0x18, 0 };
Guide_TM( 102 ) = { 1, 0x00, 0x01, 0x37, 0 };
Guide_TM( 103 ) = { 1, 0x00, 0x01, 0x19, 0 };
Guide_TM( 104 ) = { 1, 0x00, 0x01, 0x02, 0 };
Guide_TM( 105 ) = { 1, 0x00, 0x01, 0x28, 0 };
Guide_TM( 106 ) = { 1, 0x00, 0x01, 0x03, 0 };
Guide_TM( 107 ) = { 1, 0x00, 0x01, 0x25, 0 };
Guide_TM( 108 ) = { 1, 0x00, 0x01, 0x29, 0 };
Guide_TM( 109 ) = { 1, 0x00, 0x01, 0x26, 0 };
Guide_TM( 110 ) = { 1, 0x00, 0x01, 0x13, 0 };
Guide_TM( 111 ) = { 1, 0x00, 0x01, 0x22, 0 };
Guide_TM( 112 ) = { 1, 0x00, 0x01, 0x14, 0 };
Guide_TM( 113 ) = { 1, 0x00, 0x01, 0x23, 0 };
Guide_TM( 114 ) = { 1, 0x00, 0x01, 0x33, 0 };
Guide_TM( 115 ) = { 1, 0x00, 0x01, 0x20, 0 };
Guide_TM( 116 ) = { 1, 0x00, 0x01, 0x21, 0 };
Guide_TM( 117 ) = { 1, 0x00, 0x01, 0x17, 0 };
Guide_TM( 118 ) = { 1, 0x00, 0x01, 0x27, 0 };
Guide_TM( 119 ) = { 1, 0x00, 0x01, 0x18, 0 };
Guide_TM( 120 ) = { 1, 0x00, 0x01, 0x15, 0 };
Guide_TM( 121 ) = { 1, 0x00, 0x01, 0x19, 0 };
Guide_TM( 122 ) = { 1, 0x00, 0x01, 0x16, 0 };
Guide_TM( 123 ) = { 1, 0x00, 0x01, 0x28, 0 };
Guide_TM( 124 ) = { 1, 0x00, 0x01, 0x25, 0 };
Guide_TM( 125 ) = { 1, 0x00, 0x01, 0x12, 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, 3 ),
Define_TM( 8, 7 ),
Define_TM( 9, 8 ),
Define_TM( 10, 9 ),
Define_TM( 11, 10 ),
Define_TM( 12, 11 ),
Define_TM( 13, 12 ),
Define_TM( 14, 13 ),
Define_TM( 15, 14 ),
Define_TM( 16, 15 ),
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, 19 ),
Define_TM( 26, 24 ),
Define_TM( 27, 25 ),
Define_TM( 28, 26 ),
Define_TM( 29, 27 ),
Define_TM( 30, 28 ),
Define_TM( 31, 29 ),
Define_TM( 32, 30 ),
Define_TM( 33, 25 ),
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, 37 ),
Define_TM( 41, 38 ),
Define_TM( 42, 39 ),
Define_TM( 43, 40 ),
Define_TM( 44, 41 ),
Define_TM( 45, 25 ),
Define_TM( 46, 42 ),
Define_TM( 47, 43 ),
Define_TM( 48, 44 ),
Define_TM( 49, 25 ),
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, 45 ),
Define_TM( 57, 51 ),
Define_TM( 58, 52 ),
Define_TM( 59, 53 ),
Define_TM( 60, 54 ),
Define_TM( 61, 55 ),
Define_TM( 62, 56 ),
Define_TM( 63, 57 ),
Define_TM( 64, 58 ),
Define_TM( 65, 59 ),
Define_TM( 66, 60 ),
Define_TM( 67, 61 ),
Define_TM( 68, 62 ),
Define_TM( 69, 63 ),
Define_TM( 70, 64 ),
Define_TM( 71, 65 ),
Define_TM( 72, 66 ),
Define_TM( 73, 67 ),
Define_TM( 74, 68 ),
Define_TM( 75, 69 ),
Define_TM( 76, 70 ),
Define_TM( 77, 31 ),
Define_TM( 78, 71 ),
Define_TM( 79, 72 ),
Define_TM( 80, 59 ),
Define_TM( 81, 73 ),
Define_TM( 82, 74 ),
Define_TM( 83, 75 ),
Define_TM( 84, 76 ),
Define_TM( 85, 77 ),
Define_TM( 86, 78 ),
Define_TM( 87, 79 ),
Define_TM( 88, 80 ),
Define_TM( 89, 81 ),
Define_TM( 90, 82 ),
Define_TM( 91, 83 ),
Define_TM( 92, 53 ),
Define_TM( 93, 84 ),
Define_TM( 94, 85 ),
Define_TM( 95, 86 ),
Define_TM( 96, 87 ),
Define_TM( 97, 88 ),
Define_TM( 98, 54 ),
Define_TM( 99, 89 ),
Define_TM( 100, 90 ),
Define_TM( 101, 91 ),
Define_TM( 102, 16 ),
Define_TM( 103, 92 ),
Define_TM( 104, 93 ),
Define_TM( 105, 11 ),
Define_TM( 106, 94 ),
Define_TM( 107, 95 ),
Define_TM( 108, 62 ),
Define_TM( 109, 68 ),
Define_TM( 110, 57 ),
Define_TM( 111, 8 ),
Define_TM( 112, 13 ),
Define_TM( 113, 29 ),
Define_TM( 114, 1 ),
Define_TM( 115, 4 ),
Define_TM( 116, 24 ),
Define_TM( 117, 60 ),
Define_TM( 118, 41 ),
Define_TM( 119, 55 ),
Define_TM( 120, 65 ),
Define_TM( 121, 61 ),
Define_TM( 122, 49 ),
Define_TM( 123, 52 ),
Define_TM( 124, 23 ),
Define_TM( 125, 7 ),
};
// -- 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 0x4A
// -- Trigger Lists
//
// Index 0: # of triggers in list
// Index n: pointer to trigger macro - use tm() macro
// - Default Layer -
Define_TL( default, 0x00 ) = { 1, 6 };
Define_TL( default, 0x01 ) = { 1, 13 };
Define_TL( default, 0x02 ) = { 1, 64 };
Define_TL( default, 0x03 ) = { 1, 69 };
Define_TL( default, 0x04 ) = { 1, 0 };
Define_TL( default, 0x05 ) = { 1, 52 };
Define_TL( default, 0x06 ) = { 1, 57 };
Define_TL( default, 0x07 ) = { 1, 35 };
Define_TL( default, 0x08 ) = { 1, 48 };
Define_TL( default, 0x09 ) = { 1, 55 };
Define_TL( default, 0x0A ) = { 1, 32 };
Define_TL( default, 0x0B ) = { 1, 37 };
Define_TL( default, 0x0C ) = { 1, 42 };
Define_TL( default, 0x0D ) = { 1, 20 };
Define_TL( default, 0x0E ) = { 1, 25 };
Define_TL( default, 0x0F ) = { 1, 2 };
Define_TL( default, 0x10 ) = { 1, 16 };
Define_TL( default, 0x11 ) = { 1, 23 };
Define_TL( default, 0x12 ) = { 1, 74 };
Define_TL( default, 0x13 ) = { 1, 4 };
Define_TL( default, 0x14 ) = { 1, 9 };
Define_TL( default, 0x15 ) = { 1, 61 };
Define_TL( default, 0x16 ) = { 1, 66 };
Define_TL( default, 0x17 ) = { 1, 44 };
Define_TL( default, 0x18 ) = { 1, 58 };
Define_TL( default, 0x19 ) = { 1, 63 };
Define_TL( default, 0x1A ) = { 1, 41 };
Define_TL( default, 0x1B ) = { 1, 46 };
Define_TL( default, 0x1C ) = { 1, 51 };
Define_TL( default, 0x1D ) = { 1, 29 };
Define_TL( default, 0x1E ) = { 1, 34 };
Define_TL( default, 0x1F ) = { 1, 11 };
Define_TL( default, 0x20 ) = { 1, 26 };
Define_TL( default, 0x21 ) = { 1, 31 };
Define_TL( default, 0x22 ) = { 1, 8 };
Define_TL( default, 0x23 ) = { 1, 14 };
Define_TL( default, 0x24 ) = { 1, 19 };
Define_TL( default, 0x25 ) = { 1, 71 };
Define_TL( default, 0x26 ) = { 1, 1 };
Define_TL( default, 0x27 ) = { 1, 54 };
Define_TL( default, 0x28 ) = { 1, 67 };
Define_TL( default, 0x29 ) = { 1, 73 };
Define_TL( default, 0x2A ) = { 1, 50 };
Define_TL( default, 0x2B ) = { 1, 56 };
Define_TL( default, 0x2C ) = { 1, 60 };
Define_TL( default, 0x2D ) = { 1, 39 };
Define_TL( default, 0x2E ) = { 1, 43 };
Define_TL( default, 0x2F ) = { 1, 22 };
Define_TL( default, 0x30 ) = { 1, 36 };
Define_TL( default, 0x31 ) = { 1, 40 };
Define_TL( default, 0x32 ) = { 1, 18 };
Define_TL( default, 0x33 ) = { 1, 24 };
Define_TL( default, 0x34 ) = { 1, 28 };
Define_TL( default, 0x35 ) = { 1, 5 };
Define_TL( default, 0x36 ) = { 1, 10 };
Define_TL( default, 0x37 ) = { 1, 62 };
Define_TL( default, 0x38 ) = { 1, 3 };
Define_TL( default, 0x39 ) = { 1, 7 };
Define_TL( default, 0x3A ) = { 1, 59 };
Define_TL( default, 0x3B ) = { 1, 65 };
Define_TL( default, 0x3C ) = { 1, 70 };
Define_TL( default, 0x3D ) = { 1, 47 };
Define_TL( default, 0x3E ) = { 1, 53 };
Define_TL( default, 0x3F ) = { 1, 30 };
Define_TL( default, 0x40 ) = { 1, 45 };
Define_TL( default, 0x41 ) = { 1, 49 };
Define_TL( default, 0x42 ) = { 1, 27 };
Define_TL( default, 0x43 ) = { 1, 33 };
Define_TL( default, 0x44 ) = { 1, 38 };
Define_TL( default, 0x45 ) = { 1, 15 };
Define_TL( default, 0x46 ) = { 1, 21 };
Define_TL( default, 0x47 ) = { 1, 72 };
Define_TL( default, 0x48 ) = { 1, 12 };
Define_TL( default, 0x49 ) = { 1, 17 };
Define_TL( default, 0x4A ) = { 1, 68 };
// - Partial Layers -
// Partial Layer 1
Define_TL( layer1, 0x01 ) = { 1, 82 };
Define_TL( layer1, 0x02 ) = { 1, 104 };
Define_TL( layer1, 0x03 ) = { 1, 106 };
Define_TL( layer1, 0x04 ) = { 1, 75 };
Define_TL( layer1, 0x05 ) = { 1, 97 };
Define_TL( layer1, 0x06 ) = { 1, 100 };
Define_TL( layer1, 0x07 ) = { 1, 90 };
Define_TL( layer1, 0x08 ) = { 1, 95 };
Define_TL( layer1, 0x09 ) = { 1, 99 };
Define_TL( layer1, 0x0A ) = { 1, 89 };
Define_TL( layer1, 0x0B ) = { 1, 91 };
Define_TL( layer1, 0x0C ) = { 1, 93 };
Define_TL( layer1, 0x0D ) = { 0 };
Define_TL( layer1, 0x0E ) = { 0 };
Define_TL( layer1, 0x0F ) = { 1, 77 };
Define_TL( layer1, 0x10 ) = { 0 };
Define_TL( layer1, 0x11 ) = { 1, 84 };
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 ) = { 1, 94 };
Define_TL( layer1, 0x18 ) = { 1, 101 };
Define_TL( layer1, 0x19 ) = { 1, 103 };
Define_TL( layer1, 0x1A ) = { 1, 92 };
Define_TL( layer1, 0x1B ) = { 0 };
Define_TL( layer1, 0x1C ) = { 1, 96 };
Define_TL( layer1, 0x1D ) = { 0 };
Define_TL( layer1, 0x1E ) = { 0 };
Define_TL( layer1, 0x1F ) = { 1, 81 };
Define_TL( layer1, 0x20 ) = { 1, 86 };
Define_TL( layer1, 0x21 ) = { 1, 88 };
Define_TL( layer1, 0x22 ) = { 1, 79 };
Define_TL( layer1, 0x23 ) = { 0 };
Define_TL( layer1, 0x24 ) = { 1, 83 };
Define_TL( layer1, 0x25 ) = { 1, 107 };
Define_TL( layer1, 0x26 ) = { 1, 76 };
Define_TL( layer1, 0x27 ) = { 1, 98 };
Define_TL( layer1, 0x28 ) = { 1, 105 };
Define_TL( layer1, 0x29 ) = { 1, 108 };
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 ) = { 0 };
Define_TL( layer1, 0x30 ) = { 0 };
Define_TL( layer1, 0x31 ) = { 0 };
Define_TL( layer1, 0x32 ) = { 0 };
Define_TL( layer1, 0x33 ) = { 1, 85 };
Define_TL( layer1, 0x34 ) = { 1, 87 };
Define_TL( layer1, 0x35 ) = { 1, 78 };
Define_TL( layer1, 0x36 ) = { 1, 80 };
Define_TL( layer1, 0x37 ) = { 1, 102 };
// Partial Layer 2
Define_TL( layer2, 0x12 ) = { 1, 125 };
Define_TL( layer2, 0x13 ) = { 1, 110 };
Define_TL( layer2, 0x14 ) = { 1, 112 };
Define_TL( layer2, 0x15 ) = { 1, 120 };
Define_TL( layer2, 0x16 ) = { 1, 122 };
Define_TL( layer2, 0x17 ) = { 1, 117 };
Define_TL( layer2, 0x18 ) = { 1, 119 };
Define_TL( layer2, 0x19 ) = { 1, 121 };
Define_TL( layer2, 0x1A ) = { 0 };
Define_TL( layer2, 0x1B ) = { 0 };
Define_TL( layer2, 0x1C ) = { 0 };
Define_TL( layer2, 0x1D ) = { 0 };
Define_TL( layer2, 0x1E ) = { 0 };
Define_TL( layer2, 0x1F ) = { 0 };
Define_TL( layer2, 0x20 ) = { 1, 115 };
Define_TL( layer2, 0x21 ) = { 1, 116 };
Define_TL( layer2, 0x22 ) = { 1, 111 };
Define_TL( layer2, 0x23 ) = { 1, 113 };
Define_TL( layer2, 0x24 ) = { 0 };
Define_TL( layer2, 0x25 ) = { 1, 124 };
Define_TL( layer2, 0x26 ) = { 1, 109 };
Define_TL( layer2, 0x27 ) = { 1, 118 };
Define_TL( layer2, 0x28 ) = { 1, 123 };
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 ) = { 0 };
Define_TL( layer2, 0x32 ) = { 0 };
Define_TL( layer2, 0x33 ) = { 1, 114 };
// -- ScanCode Offset Map
// Maps interconnect ids to scancode offsets
//
// Only used for keyboards with an interconnect
const uint8_t InterconnectOffsetList[] = {
0x4B,
};
// -- ScanCode Indexed Maps
// Maps to a trigger list of macro pointers
// _
// <scan code> -> |T|
// |r| -> <trigger macro pointer 1>
// |i|
// |g| -> <trigger macro pointer 2>
// |g|
// |e| -> <trigger macro pointer 3>
// |r|
// |s| -> <trigger macro pointer n>
// -
// - Default Map for ScanCode Lookup -
const nat_ptr_t *default_scanMap[] = {
default_tl_0x00, default_tl_0x01, 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
};
// - Partial Layer ScanCode Lookup Maps -
// Partial Layer 1
const nat_ptr_t *layer1_scanMap[] = {
layer1_tl_0x01, 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
};
// Partial Layer 2
const nat_ptr_t *layer2_scanMap[] = {
layer2_tl_0x12, layer2_tl_0x13, layer2_tl_0x14, layer2_tl_0x15, layer2_tl_0x16, layer2_tl_0x17, layer2_tl_0x18, layer2_tl_0x19, layer2_tl_0x1A, 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
};
// ----- Layer Index -----
// -- Layer Index List
//
// Index 0: Default map
// Index n: Additional layers
const Layer LayerIndex[] = {
Layer_IN( default_scanMap, "D: md1Overlay + stdFuncMap", 0x00 ),
Layer_IN( layer1_scanMap, "1: hhkbpro2", 0x01 ),
Layer_IN( layer2_scanMap, "2: colemak", 0x12 ),
};
// - Layer State
uint8_t LayerState[ LayerNum ];

View File

@ -0,0 +1,129 @@
/* Copyright (C) 2014-2016 by Jacob Alexander
*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this file. If not, see <http://www.gnu.org/licenses/>.
*/
// This file was generated by the kll compiler, DO NOT EDIT.
// Generation Date: 2016-11-11
// KLL Backend: kiibohd
// KLL Git Rev: 1a078b2b940709bc3c429c952d2f0d842927394f
// KLL Git Changes: None
// Compiler arguments:
// ../../kll/kll.py
// /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
// /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
// /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
// /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
// -d
// /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
// /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
// -p
// /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
// -p
// /mnt/1/share/i75/controller/kll/layouts/colemak.kll
// --backend
// kiibohd
// --templates
// /mnt/1/share/i75/controller/kll/templates/kiibohdKeymap.h
// /mnt/1/share/i75/controller/kll/templates/kiibohdDefs.h
// --outputs
// generatedKeymap.h
// kll_defs.h
//
// - Base Layer -
// MatrixArmCapabilities
// /mnt/1/share/i75/controller/Scan/MatrixARM/capabilities.kll
// PartialMapCapabilities
// /mnt/1/share/i75/controller/Macro/PartialMap/capabilities.kll
// pjrcUSBCapabilities
// /mnt/1/share/i75/controller/Output/pjrcUSB/capabilities.kll
// MD1
// /mnt/1/share/i75/controller/Scan/i75/scancode_map.kll
// - Default Layer -
// md1Overlay
// /mnt/1/share/i75/controller/kll/layouts/md1Overlay.kll
// stdFuncMap
// /mnt/1/share/i75/controller/kll/layouts/stdFuncMap.kll
// - Partial Layers -
// Layer 1
// hhkbpro2
// /mnt/1/share/i75/controller/kll/layouts/hhkbpro2.kll
// Layer 2
// colemak
// /mnt/1/share/i75/controller/kll/layouts/colemak.kll
#pragma once
// ----- Enums -----
// Capability Indices
typedef enum CapabilityIndex {
CustomAction_action1_capability_index,
CustomAction_blockHold_capability_index,
CustomAction_blockKey_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 0x1
#define enableRawIO_define 0
#define enableUSBResume_define 1
#define MinDebounceTime_define 5
#define IndexWordSize_define 16
#define enableMouse_define 1
#define DebounceDivThreshold_define 65535
#define flashModeEnabled_define 0
#define enableKeyboard_define 1
#define enableUSBSuspend_define 1
#define DebounceThrottleDiv_define 0
#define enableJoystick_define 0
#define StateWordSize_define 8
#define enableVirtualSerialPort_define 1
#define StrobeDelay_define 0
#define KeyboardLocale_define 0
#define enableUSBLowPowerNegotiation_define 0
#define enableDeviceRestartOnUSBTimeout_define 0
#define USBProtocol_define 1
#define CapabilitiesNum_KLL 17
#define ResultMacroNum_KLL 96
#define TriggerMacroNum_KLL 126
#define LayerNum_KLL 3

81
Keyboards/i75.gcc/load Executable file
View File

@ -0,0 +1,81 @@
#!/usr/bin/env bash
# Convenience script for loading firmware onto a teensy type device
# By default, initiates teensy-load-cli
SERIAL_PORT=""
AUTO_SCREEN_SESSION=""
PROG_NAME=$(basename $0)
# Parse all the command line arguments
while (( "$#" >= "1" )); do
# Scan each argument
key="$1"
case $key in
-a|--autoscreen)
AUTO_SCREEN_SESSION="$2"
shift
;;
-f|--fastload)
SERIAL_PORT="$2"
shift
;;
-h|--help)
echo "Usage: $PROG_NAME [options...]"
echo ""
echo "Loads the most recent built firmware () to the device."
echo " (load.teensy)"
echo ""
echo "Arguments:"
echo " -a, --autoscreen SERIAL_PORT Use screen on the specified serial port after loading."
echo " e.g. /dev/ttyACM0"
echo " -f, --fastload SERIAL_PORT Send the reload command to the debug terminal."
echo " e.g. /dev/ttyACM0"
echo " NOTE: May not work due to non-functional terminal, or disable remote flashing"
echo " -h, --help This message."
exit 1
;;
*)
echo "INVALID ARG: '$1'"
exit 2
;;
esac
# Shift to the next argument
shift
done
# First check to see teensy-loader-cli has been compiled
if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
# Compile teensy-loader-cli
mkdir -p teensy-loader-cli
cd teensy-loader-cli
cmake -G "Unix Makefiles" /mnt/1/share/i75/controller/LoadFile
make || exit 3
cd -
fi
# If a SERIAL_PORT was specified set the uC into reflash mode
# XXX May not be successful if uC is not in a good state (or does not allow remote flashing)
if [[ "$SERIAL_PORT" != "" ]] && [[ -e "$SERIAL_PORT" ]]; then
echo "NOTE: This may fail if the uC is in a bad state or does not support remote flashing"
printf "reload\r" > $SERIAL_PORT
sleep 1
fi
# Loads the hex file onto the teensy
teensy-loader-cli/teensy-loader-cli -mmcu=mk20dx256 -w kiibohd.teensy.hex
EXIT_STATUS=$?
# Load Screen Session if specified
if (( "$EXIT_STATUS" == "0" )) && [[ "$AUTO_SCREEN_SESSION" != "" ]]; then
if type screen &>/dev/null; then
sleep 2
screen $AUTO_SCREEN_SESSION
else
echo "screen is not installed"
exit 3
fi
fi
exit $EXIT_STATUS