2017-06-17 01:14:47 +06: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 03:46:53 +06:00
|
|
|
COMMON_VPATH += $(SERIAL_PATH)
|
2017-06-17 01:14:47 +06: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 22:30:10 +06:00
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_clicky.c
|
2018-01-14 10:38:25 +06:00
|
|
|
ifeq ($(PLATFORM),AVR)
|
|
|
|
SRC += $(QUANTUM_DIR)/audio/audio.c
|
|
|
|
else
|
|
|
|
SRC += $(QUANTUM_DIR)/audio/audio_arm.c
|
|
|
|
endif
|
2017-06-17 01:14:47 +06: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-27 03:41:39 +06:00
|
|
|
ifeq ($(strip $(STENO_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DSTENO_ENABLE
|
2018-08-28 19:03:11 +06:00
|
|
|
VIRTSER_ENABLE := yes
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c
|
2017-07-27 03:41:39 +06:00
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06: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 23:13:08 +06:00
|
|
|
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
|
2018-08-28 19:03:11 +06:00
|
|
|
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
|
|
|
|
OPT_DEFS += -DMOUSE_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/pointing_device.c
|
2017-10-06 23:13:08 +06:00
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06: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-16 08:12:25 +06:00
|
|
|
SRC += $(QUANTUM_DIR)/rgblight.c
|
2017-06-17 01:14:47 +06:00
|
|
|
CIE1931_CURVE = yes
|
|
|
|
LED_BREATHING_TABLE = yes
|
2017-07-04 21:17:28 +06:00
|
|
|
ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes)
|
|
|
|
OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER
|
|
|
|
else
|
2018-08-28 19:03:11 +06:00
|
|
|
SRC += ws2812.c
|
2017-07-04 21:17:28 +06:00
|
|
|
endif
|
2017-06-17 01:14:47 +06:00
|
|
|
endif
|
|
|
|
|
2018-05-09 01:24:18 +06:00
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DRGB_MATRIX_ENABLE
|
2018-08-28 19:03:11 +06:00
|
|
|
OPT_DEFS += -DIS31FL3731
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
2018-05-09 01:24:18 +06:00
|
|
|
SRC += is31fl3731.c
|
2018-05-14 20:17:24 +06:00
|
|
|
SRC += i2c_master.c
|
2018-05-09 01:24:18 +06:00
|
|
|
SRC += $(QUANTUM_DIR)/color.c
|
|
|
|
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
|
|
|
CIE1931_CURVE = yes
|
|
|
|
endif
|
|
|
|
|
2018-08-28 19:03:11 +06:00
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
|
|
|
OPT_DEFS += -DRGB_MATRIX_ENABLE
|
|
|
|
OPT_DEFS += -DIS31FL3731
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
|
|
|
SRC += is31fl3731.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
SRC += $(QUANTUM_DIR)/color.c
|
|
|
|
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
|
|
|
CIE1931_CURVE = yes
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733)
|
|
|
|
OPT_DEFS += -DRGB_MATRIX_ENABLE
|
|
|
|
OPT_DEFS += -DIS31FL3733
|
|
|
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
|
|
|
SRC += is31fl3733.c
|
|
|
|
SRC += i2c_master.c
|
|
|
|
SRC += $(QUANTUM_DIR)/color.c
|
|
|
|
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
|
|
|
CIE1931_CURVE = yes
|
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06: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 14:50:20 +06:00
|
|
|
ifeq ($(strip $(KEY_LOCK_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DKEY_LOCK_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_key_lock.c
|
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06: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 11:33:28 +06:00
|
|
|
ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DAUTO_SHIFT_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_auto_shift.c
|
2018-03-17 02:41:01 +06:00
|
|
|
ifeq ($(strip $(AUTO_SHIFT_MODIFIERS)), yes)
|
|
|
|
OPT_DEFS += -DAUTO_SHIFT_MODIFIERS
|
|
|
|
endif
|
2017-09-17 11:33:28 +06:00
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06: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 03:02:32 +06:00
|
|
|
endif
|
2018-08-28 19:03:11 +06:00
|
|
|
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
|
2018-01-19 03:02:32 +06:00
|
|
|
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
2017-06-17 01:14:47 +06: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 10:43:10 +06:00
|
|
|
ifeq ($(strip $(TERMINAL_ENABLE)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_terminal.c
|
|
|
|
OPT_DEFS += -DTERMINAL_ENABLE
|
|
|
|
endif
|
|
|
|
|
2017-10-15 03:32:19 +06:00
|
|
|
ifeq ($(strip $(USB_HID_ENABLE)), yes)
|
|
|
|
include $(TMK_DIR)/protocol/usb_hid.mk
|
|
|
|
endif
|
|
|
|
|
2018-07-15 23:31:45 +06:00
|
|
|
ifeq ($(strip $(HD44780_ENABLE)), yes)
|
|
|
|
SRC += drivers/avr/hd44780.c
|
2018-08-28 19:03:11 +06:00
|
|
|
OPT_DEFS += -DHD44780_ENABLE
|
2018-07-15 23:31:45 +06: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 00:37:13 +06:00
|
|
|
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
|
|
|
|
SRC += $(QUANTUM_DIR)/dynamic_keymap.c
|
|
|
|
endif
|
|
|
|
|
2018-09-17 23:48:02 +06:00
|
|
|
ifeq ($(strip $(LEADER_ENABLE)), yes)
|
|
|
|
SRC += $(QUANTUM_DIR)/process_keycode/process_leader.c
|
|
|
|
OPT_DEFS += -DLEADER_ENABLE
|
|
|
|
endif
|
|
|
|
|
2017-06-17 01:14:47 +06:00
|
|
|
QUANTUM_SRC:= \
|
|
|
|
$(QUANTUM_DIR)/quantum.c \
|
|
|
|
$(QUANTUM_DIR)/keymap_common.c \
|
2018-09-17 23:48:02 +06:00
|
|
|
$(QUANTUM_DIR)/keycode_config.c
|
2017-06-17 01:14:47 +06:00
|
|
|
|
|
|
|
ifndef CUSTOM_MATRIX
|
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-17 08:25:02 +06:00
|
|
|
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/matrix.c
|
|
|
|
else
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/matrix.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
|
|
|
OPT_DEFS += -DSPLIT_KEYBOARD
|
|
|
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/split_flags.c \
|
|
|
|
$(QUANTUM_DIR)/split_common/split_util.c \
|
|
|
|
$(QUANTUM_DIR)/split_common/i2c.c \
|
2018-09-17 23:48:02 +06:00
|
|
|
$(QUANTUM_DIR)/split_common/serial.c
|
2017-08-06 14:50:20 +06:00
|
|
|
endif
|