2017-06-16 22:14:47 +03:00
|
|
|
# Copyright 2017 Fred Sundvik
|
|
|
|
#
|
|
|
|
# This program 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 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
SERIAL_DIR := $(QUANTUM_DIR)/serial_link
|
|
|
|
SERIAL_PATH := $(QUANTUM_PATH)/serial_link
|
|
|
|
SERIAL_SRC := $(wildcard $(SERIAL_PATH)/protocol/*.c)
|
|
|
|
SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c)
|
|
|
|
SERIAL_DEFS += -DSERIAL_LINK_ENABLE
|
2017-06-19 00:46:53 +03:00
|
|
|
COMMON_VPATH += $(SERIAL_PATH)
|
2017-06-16 22:14:47 +03:00
|
|
|
|
|
|
|
ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DAPI_SYSEX_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/api/api_sysex.c
|
|
|
|
OPT_DEFS += -DAPI_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/api.c
|
|
|
|
MIDI_ENABLE=yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
MUSIC_ENABLE := 0
|
|
|
|
|
|
|
|
ifeq ($(strip $(AUDIO_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DAUDIO_ENABLE
|
|
|
|
MUSIC_ENABLE := 1
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c
|
2018-04-21 09:30:10 -07:00
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_clicky.c
|
2018-01-13 20:38:25 -08:00
|
|
|
ifeq ($(PLATFORM),AVR)
|
|
|
|
SRC += $(QUANTUM_DIR)/audio/audio.c
|
|
|
|
else
|
|
|
|
SRC += $(QUANTUM_DIR)/audio/audio_arm.c
|
|
|
|
endif
|
2017-06-16 22:14:47 +03:00
|
|
|
SRC += $(QUANTUM_DIR)/audio/voices.c
|
|
|
|
SRC += $(QUANTUM_DIR)/audio/luts.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(MIDI_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DMIDI_ENABLE
|
|
|
|
MUSIC_ENABLE := 1
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MUSIC_ENABLE), 1)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_music.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(COMBO_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DCOMBO_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_combo.c
|
|
|
|
endif
|
|
|
|
|
2017-07-26 14:41:39 -07:00
|
|
|
ifeq ($(strip $(STENO_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DSTENO_ENABLE
|
2018-08-28 16:03:11 +03:00
|
|
|
VIRTSER_ENABLE := yes
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c
|
2017-07-26 14:41:39 -07:00
|
|
|
endif
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
ifeq ($(strip $(VIRTSER_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DVIRTSER_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DFAUXCLICKY_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/fauxclicky.c
|
|
|
|
endif
|
|
|
|
|
2017-10-06 11:13:08 -06:00
|
|
|
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
|
2018-08-28 16:03:11 +03:00
|
|
|
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
|
|
|
|
OPT_DEFS += -DMOUSE_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/pointing_device.c
|
2017-10-06 11:13:08 -06:00
|
|
|
endif
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
ifeq ($(strip $(UCIS_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DUCIS_ENABLE
|
|
|
|
UNICODE_COMMON = yes
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_ucis.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DUNICODEMAP_ENABLE
|
|
|
|
UNICODE_COMMON = yes
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicodemap.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(UNICODE_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DUNICODE_ENABLE
|
|
|
|
UNICODE_COMMON = yes
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(UNICODE_COMMON)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DRGBLIGHT_ENABLE
|
2017-09-15 22:12:25 -04:00
|
|
|
SRC += $(QUANTUM_DIR)/rgblight.c
|
2017-06-16 22:14:47 +03:00
|
|
|
CIE1931_CURVE = yes
|
|
|
|
LED_BREATHING_TABLE = yes
|
2017-07-04 11:17:28 -04:00
|
|
|
ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes)
|
|
|
|
OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER
|
|
|
|
else
|
2018-08-28 16:03:11 +03:00
|
|
|
SRC += ws2812.c
|
2017-07-04 11:17:28 -04:00
|
|
|
endif
|
2017-06-16 22:14:47 +03:00
|
|
|
endif
|
|
|
|
|
2018-09-28 13:32:54 -07:00
|
|
|
VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom
|
2019-01-23 15:43:48 -08:00
|
|
|
|
|
|
|
LED_MATRIX_ENABLE ?= no
|
|
|
|
ifneq ($(strip $(LED_MATRIX_ENABLE)), no)
|
|
|
|
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
|
|
|
|
$(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
|
|
|
|
endif
|
|
|
|
OPT_DEFS += -DLED_MATRIX_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/led_matrix.c
|
|
|
|
SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731)
|
|
|
|
OPT_DEFS += -DIS31FL3731
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
|
|
|
SRC += is31fl3731-simple.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
RGB_MATRIX_ENABLE ?= no
|
2018-09-28 00:40:18 +10:00
|
|
|
ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
|
|
|
|
ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
|
|
|
|
$(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type)
|
|
|
|
endif
|
2018-05-08 15:24:18 -04:00
|
|
|
OPT_DEFS += -DRGB_MATRIX_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/color.c
|
|
|
|
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
2018-09-28 00:40:18 +10:00
|
|
|
SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c
|
2018-05-08 15:24:18 -04:00
|
|
|
CIE1931_CURVE = yes
|
|
|
|
endif
|
|
|
|
|
2018-09-28 00:40:18 +10:00
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
|
|
|
RGB_MATRIX_ENABLE = IS31FL3731
|
|
|
|
endif
|
|
|
|
|
2018-08-28 16:03:11 +03:00
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
|
|
|
OPT_DEFS += -DIS31FL3731
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
|
|
|
SRC += is31fl3731.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733)
|
|
|
|
OPT_DEFS += -DIS31FL3733
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
|
|
|
SRC += is31fl3733.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
endif
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DTAP_DANCE_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
|
|
|
|
endif
|
|
|
|
|
2017-08-06 01:50:20 -07:00
|
|
|
ifeq ($(strip $(KEY_LOCK_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DKEY_LOCK_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_key_lock.c
|
|
|
|
endif
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
ifeq ($(strip $(PRINTING_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DPRINTING_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_printer.c
|
|
|
|
SRC += $(TMK_DIR)/protocol/serial_uart.c
|
|
|
|
endif
|
|
|
|
|
2017-09-17 01:33:28 -04:00
|
|
|
ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DAUTO_SHIFT_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_auto_shift.c
|
2018-03-16 13:41:01 -07:00
|
|
|
ifeq ($(strip $(AUTO_SHIFT_MODIFIERS)), yes)
|
|
|
|
OPT_DEFS += -DAUTO_SHIFT_MODIFIERS
|
|
|
|
endif
|
2017-09-17 01:33:28 -04:00
|
|
|
endif
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
|
|
|
|
SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
|
|
|
|
OPT_DEFS += $(SERIAL_DEFS)
|
|
|
|
VAPTH += $(SERIAL_PATH)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(strip $(VARIABLE_TRACE)),)
|
|
|
|
SRC += $(QUANTUM_DIR)/variable_trace.c
|
|
|
|
OPT_DEFS += -DNUM_TRACED_VARIABLES=$(strip $(VARIABLE_TRACE))
|
|
|
|
ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),)
|
|
|
|
OPT_DEFS += -DMAX_VARIABLE_TRACE_SIZE=$(strip $(MAX_VARIABLE_TRACE_SIZE))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(LCD_ENABLE)), yes)
|
|
|
|
CIE1931_CURVE = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
|
|
|
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
|
|
|
CIE1931_CURVE = yes
|
2018-01-19 08:02:32 +11:00
|
|
|
endif
|
2019-01-26 21:25:59 -08:00
|
|
|
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
|
|
|
|
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
|
|
|
endif
|
|
|
|
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
|
2018-01-19 08:02:32 +11:00
|
|
|
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
2017-06-16 22:14:47 +03:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(CIE1931_CURVE)), yes)
|
|
|
|
OPT_DEFS += -DUSE_CIE1931_CURVE
|
|
|
|
LED_TABLES = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(LED_BREATHING_TABLE)), yes)
|
|
|
|
OPT_DEFS += -DUSE_LED_BREATHING_TABLE
|
|
|
|
LED_TABLES = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(LED_TABLES)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/led_tables.c
|
|
|
|
endif
|
|
|
|
|
2017-09-12 00:43:10 -04:00
|
|
|
ifeq ($(strip $(TERMINAL_ENABLE)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c
|
|
|
|
OPT_DEFS += -DTERMINAL_ENABLE
|
2018-10-30 18:00:43 -07:00
|
|
|
OPT_DEFS += -DUSER_PRINT
|
2017-09-12 00:43:10 -04:00
|
|
|
endif
|
|
|
|
|
2017-10-14 11:32:19 -10:00
|
|
|
ifeq ($(strip $(USB_HID_ENABLE)), yes)
|
|
|
|
include $(TMK_DIR)/protocol/usb_hid.mk
|
|
|
|
endif
|
|
|
|
|
2018-10-26 16:19:23 -04:00
|
|
|
ifeq ($(strip $(ENCODER_ENABLE)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/encoder.c
|
|
|
|
OPT_DEFS += -DENCODER_ENABLE
|
|
|
|
endif
|
|
|
|
|
2018-12-04 11:04:57 -05:00
|
|
|
ifeq ($(strip $(HAPTIC_ENABLE)), DRV2605L)
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/haptic
|
|
|
|
SRC += DRV2605L.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
OPT_DEFS += -DDRV2605L
|
|
|
|
endif
|
|
|
|
|
2018-07-15 19:31:45 +02:00
|
|
|
ifeq ($(strip $(HD44780_ENABLE)), yes)
|
|
|
|
SRC += drivers/avr/hd44780.c
|
2018-08-28 16:03:11 +03:00
|
|
|
OPT_DEFS += -DHD44780_ENABLE
|
2018-07-15 19:31:45 +02:00
|
|
|
endif
|
|
|
|
|
Zeal60/Zeal65/M60-A implementation (#3879)
* Initial version of zeal60
* WIP
* Fixes issue #900
* Adding RGB underglow functionality.
Fixed a compile-time conflict caused by enabling RGB underglow functionality.
* Refactor RPC protocol
* Fix last merge
* README for RGB underglow updated.
* Additional README changes.
* Adding RGBW strip software-based current-limiting functionality.
* RGBW current-limiting functionality should be handled by RGBSTRIP_MAX_CURRENT_PER_LIGHT instead.
* Updated README to reflect implementation of built-in current limiting.
* Keymap readability improvements.
* Minor keymap improvements.
* Fixed LED driver init sequence, formatting
* Dimming implementation tested, working.
* Stab LEDs synced with spacebar hits in effects.
* RGB underglow tested and functional. Simplified README for RGB underglow.
* Undid accidental file deletion from previous merge conflict. Safer values for RGB underglow.
* Improved arrow key positions in keymap.
* Added functionality to correct uneven RGB underglow. Refactored related code.
* Reverted to safer values for underglow.
* Changes for v0.3
* Custom LED brightness scaling will take place after current adjustment in order to avoid being overridden.
* Create keymap.c
Added split backspace and split shift to ISO layout
* Create config.h
Turned on LEDs for new layout
* Fixed bug where left spacebar stabilizer LED (LC06) would adopt color of row above.
* Added hhkb_wilba keymap
* Update keymap.c
* Update keymap.c
* Update keymap.c
* Added indicators, full param setting via host
* Added "mousekey" layout
* Added Zeal65 support, factory test mode
* Keycode safe range changed, caused bugs
* Bumped EEPROM version due to change in QMK keycodes
* Disable HHKB "blocked" LEDs if KC_NO in keymap
* Added "disable_hhkb_blocker_leds"
* Required overridden function for keymaps in EEPROM
* Added polar coordinate mapping, effect speed
* Force Raw HID interface number to 1 always
* Fixed last merge from master
* Added effect speed to default keymaps
* add BACKLIGHT_ prefix to vars
* add BACKLIGHT_ prefix to vars
* Keymap speed effect; keymap improvements/fixes
Readme updated to match changes
* Refactored to use common IS31FL3731/I2C drivers
* Fixed make rules, backlight disabled feature
* Make split rightshift default for Zeal65
* Added M60-A as a "version" of Zeal60.
* Renamed IS31FL3731 driver functions
* Fix suspend_wakeup_init_kb() being defined twice
* First pass refactor dynamic keymaps
* Updated to changed I2C and ISSI drivers
* Refactor zeal_color.* usage to quantum/color.*
* Updated Zeal65, fixed dynamic_keymap
* Major refactoring of Zeal60 backlight and API
* Lots of little cleanups
* Added readme.md
* Added readme.md
* Added LAYOUT_60*() macros, refactored and cleaned up default keymaps
* Fix compile error in suspend.c
* Added Zeal65 LAYOUT macros, info.json
* Added rama/m60_a, deleted zeal60/keymaps/m60_a
* Fixed rama/m60_a/keymaps/proto
* Fixed compilation error for suspend.c
* Requested changes for PR
* Fixed readme.md images
* Another readme.md fix
* Added drashna's requested changes
2018-09-14 04:37:13 +10:00
|
|
|
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/dynamic_keymap.c
|
|
|
|
endif
|
|
|
|
|
2018-09-17 10:48:02 -07:00
|
|
|
ifeq ($(strip $(LEADER_ENABLE)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_leader.c
|
|
|
|
OPT_DEFS += -DLEADER_ENABLE
|
|
|
|
endif
|
|
|
|
|
2018-12-04 11:04:57 -05:00
|
|
|
include $(DRIVER_PATH)/qwiic/qwiic.mk
|
|
|
|
|
2017-06-16 22:14:47 +03:00
|
|
|
QUANTUM_SRC:= \
|
|
|
|
$(QUANTUM_DIR)/quantum.c \
|
|
|
|
$(QUANTUM_DIR)/keymap_common.c \
|
2018-09-17 10:48:02 -07:00
|
|
|
$(QUANTUM_DIR)/keycode_config.c
|
2017-06-16 22:14:47 +03:00
|
|
|
|
2019-01-18 04:08:14 +10:00
|
|
|
# Include the standard or split matrix code if needed
|
|
|
|
ifneq ($(strip $(CUSTOM_MATRIX)), yes)
|
|
|
|
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/matrix.c
|
|
|
|
else
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/matrix.c
|
2019-01-14 02:56:46 +09:00
|
|
|
endif
|
2019-01-18 04:08:14 +10:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Include the standard debounce code if needed
|
|
|
|
ifneq ($(strip $(CUSTOM_DEBOUNCE)), yes)
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/debounce.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
Lets split eh (#3120)
* Line ending stuff again
* Added Let's Split Eh? Files and updated #USE_IC2 checks to also include th EH revision (can only be used in I2C)
* Added personal keymap, updated some of the EH files
* Created new keyboard file for testing "lets_split_eh" will merge into lets_split once fully functional
* Added split code from lets_split, removed pro micro imports and LED code
THIS IS WORKING CODE, WITHOUT RGB AND BACKLIGHT
* Took back original Lets Slit files for the lets_split keyboard, working in the lets_split_eh folder for now
* Updated eh.c
* More rework of the I2C code, added global flags for split boards.
* Introduced RGB over I2C, having weird edge case issues at the moment though
* Fixed weird I2C edgecase with RGB, although still would like to track down route cause..
* Changed RGB keycodes (static ones) to activate on key-up instead of key-down to elimate weird ghosting issue over I2C
* Lots of changes, mainly externalized the Split keyboard code and added logic for only including when needed.
- Added makefile option "SPLIT_KEYBOARD" that when = yes will include the split keyboard files and custom matrix
- Split keyboard files placed into quantum/split_common/
- Added define option for config files "SPLIT_HAND_PIN" FOr using high/low pin to determine handedness, low = right hand, high = left hand
- Cleaned up split logic for RGB and Backlight so it is only exectuted / included when needed
* Updated documentation for the new makefile options and #defines specific to split keyboards
* Added a bit more info to docs, so people aren't confused
* Modifed Let's Split to use externalized code, also added left and right hand eeprom files to the split_common folder
* Removed some debugging from eh.c
* Small changes to keyboard configs. Also added a default keymap (just a copy of my that_canadian keymap).
* Added a README file to the Let's Split Eh?
* Changed it so RGB static updates are done on key-up ONLY for split boards rather than all boards. Also fixed leftover un-used variable in rgblight.c
* Updated default keymap and my keymap for Let's Split Eh? Updated the comments so it reflects RGB control, and removed audio functions.
* Fixed lets_split_eh not having a default version
* Removed "eh" references from lets_split folder for now
* Took lets_split folder from master to fix travis build errors, weird my local was overriding.
* Changed LAYOUT_ortho_4x12_kc -> LAYOUT_kc_ortho_4x12 to match bakingpy and others
* Removed rules.mk from my lets_split keymap, not needed
* Updated the config_options doc to better explain the usage of "#define SPLIT_HAND_PIN"
2018-07-16 19:25:02 -07:00
|
|
|
OPT_DEFS += -DSPLIT_KEYBOARD
|
2019-01-18 04:08:14 +10:00
|
|
|
|
|
|
|
# Include files used by all split keyboards
|
Lets split eh (#3120)
* Line ending stuff again
* Added Let's Split Eh? Files and updated #USE_IC2 checks to also include th EH revision (can only be used in I2C)
* Added personal keymap, updated some of the EH files
* Created new keyboard file for testing "lets_split_eh" will merge into lets_split once fully functional
* Added split code from lets_split, removed pro micro imports and LED code
THIS IS WORKING CODE, WITHOUT RGB AND BACKLIGHT
* Took back original Lets Slit files for the lets_split keyboard, working in the lets_split_eh folder for now
* Updated eh.c
* More rework of the I2C code, added global flags for split boards.
* Introduced RGB over I2C, having weird edge case issues at the moment though
* Fixed weird I2C edgecase with RGB, although still would like to track down route cause..
* Changed RGB keycodes (static ones) to activate on key-up instead of key-down to elimate weird ghosting issue over I2C
* Lots of changes, mainly externalized the Split keyboard code and added logic for only including when needed.
- Added makefile option "SPLIT_KEYBOARD" that when = yes will include the split keyboard files and custom matrix
- Split keyboard files placed into quantum/split_common/
- Added define option for config files "SPLIT_HAND_PIN" FOr using high/low pin to determine handedness, low = right hand, high = left hand
- Cleaned up split logic for RGB and Backlight so it is only exectuted / included when needed
* Updated documentation for the new makefile options and #defines specific to split keyboards
* Added a bit more info to docs, so people aren't confused
* Modifed Let's Split to use externalized code, also added left and right hand eeprom files to the split_common folder
* Removed some debugging from eh.c
* Small changes to keyboard configs. Also added a default keymap (just a copy of my that_canadian keymap).
* Added a README file to the Let's Split Eh?
* Changed it so RGB static updates are done on key-up ONLY for split boards rather than all boards. Also fixed leftover un-used variable in rgblight.c
* Updated default keymap and my keymap for Let's Split Eh? Updated the comments so it reflects RGB control, and removed audio functions.
* Fixed lets_split_eh not having a default version
* Removed "eh" references from lets_split folder for now
* Took lets_split folder from master to fix travis build errors, weird my local was overriding.
* Changed LAYOUT_ortho_4x12_kc -> LAYOUT_kc_ortho_4x12 to match bakingpy and others
* Removed rules.mk from my lets_split keymap, not needed
* Updated the config_options doc to better explain the usage of "#define SPLIT_HAND_PIN"
2018-07-16 19:25:02 -07:00
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/split_flags.c \
|
2019-01-18 04:08:14 +10:00
|
|
|
$(QUANTUM_DIR)/split_common/split_util.c
|
|
|
|
|
|
|
|
# Determine which (if any) transport files are required
|
|
|
|
ifneq ($(strip $(SPLIT_TRANSPORT)), custom)
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c
|
|
|
|
# Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
|
|
|
|
# Unused functions are pruned away, which is why we can add both drivers here without bloat.
|
|
|
|
QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/i2c.c \
|
|
|
|
$(QUANTUM_DIR)/split_common/serial.c
|
|
|
|
endif
|
2018-12-31 08:45:44 -08:00
|
|
|
COMMON_VPATH += $(QUANTUM_PATH)/split_common
|
2017-08-06 01:50:20 -07:00
|
|
|
endif
|