Skip to content

Commit 9f76541

Browse files
committed
Merge branch 'develop'
2 parents 57be487 + eb04b94 commit 9f76541

File tree

1,434 files changed

+12339
-83353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,434 files changed

+12339
-83353
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ FILE_PATTERNS = *.c \
145145
RECURSIVE = YES
146146
EXCLUDE =
147147
EXCLUDE_SYMLINKS = NO
148-
EXCLUDE_PATTERNS = */protocol/arm_atsam/*
148+
EXCLUDE_PATTERNS =
149149
EXCLUDE_SYMBOLS =
150150
EXAMPLE_PATH =
151151
EXAMPLE_PATTERNS = *

builddefs/build_full_test.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ $(TEST_OUTPUT)_SRC := \
2121
$(SRC) \
2222
$(QUANTUM_PATH)/keymap_introspection.c \
2323
tests/test_common/matrix.c \
24+
tests/test_common/pointing_device_driver.c \
2425
tests/test_common/test_driver.cpp \
2526
tests/test_common/keyboard_report_util.cpp \
27+
tests/test_common/mouse_report_util.cpp \
2628
tests/test_common/keycode_util.cpp \
2729
tests/test_common/keycode_table.cpp \
2830
tests/test_common/test_fixture.cpp \

builddefs/build_keyboard.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ endif
186186
# Have we found a keymap.json?
187187
ifneq ("$(wildcard $(KEYMAP_JSON))", "")
188188
ifneq ("$(wildcard $(KEYMAP_C))", "")
189-
$(call WARNING_MESSAGE,Keymap is specified as both keymap.json and keymap.c -- keymap.json file wins.)
189+
# Allow a separately-found keymap.c next to keymap.json -- the keymap.c
190+
# generator will include the other keymap.c in the process, if supplied.
191+
OTHER_KEYMAP_C := $(KEYMAP_C)
192+
OPT_DEFS += -DOTHER_KEYMAP_C=\"$(OTHER_KEYMAP_C)\"
190193
endif
191194

192195
KEYMAP_PATH := $(KEYMAP_JSON_PATH)

builddefs/common_features.mk

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ QUANTUM_SRC += \
2828
$(QUANTUM_DIR)/sync_timer.c \
2929
$(QUANTUM_DIR)/logging/debug.c \
3030
$(QUANTUM_DIR)/logging/sendchar.c \
31+
$(QUANTUM_DIR)/process_keycode/process_default_layer.c \
3132

3233
VPATH += $(QUANTUM_DIR)/logging
3334
# Fall back to lib/printf if there is no platform provided print
@@ -129,13 +130,13 @@ ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
129130
MOUSE_ENABLE := yes
130131
VPATH += $(QUANTUM_DIR)/pointing_device
131132
SRC += $(QUANTUM_DIR)/pointing_device/pointing_device.c
132-
SRC += $(QUANTUM_DIR)/pointing_device/pointing_device_drivers.c
133133
SRC += $(QUANTUM_DIR)/pointing_device/pointing_device_auto_mouse.c
134134
ifneq ($(strip $(POINTING_DEVICE_DRIVER)), custom)
135135
SRC += drivers/sensors/$(strip $(POINTING_DEVICE_DRIVER)).c
136136
OPT_DEFS += -DPOINTING_DEVICE_DRIVER_$(strip $(shell echo $(POINTING_DEVICE_DRIVER) | tr '[:lower:]' '[:upper:]'))
137137
endif
138138
OPT_DEFS += -DPOINTING_DEVICE_DRIVER_$(strip $(POINTING_DEVICE_DRIVER))
139+
OPT_DEFS += -DPOINTING_DEVICE_DRIVER_NAME=$(strip $(POINTING_DEVICE_DRIVER))
139140
ifeq ($(strip $(POINTING_DEVICE_DRIVER)), adns9800)
140141
SPI_DRIVER_REQUIRED = yes
141142
else ifeq ($(strip $(POINTING_DEVICE_DRIVER)), analog_joystick)
@@ -215,7 +216,7 @@ else
215216
COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash
216217
COMMON_VPATH += $(DRIVER_PATH)/flash
217218
SRC += eeprom_driver.c eeprom_legacy_emulated_flash.c legacy_flash_ops.c
218-
else ifneq ($(filter $(MCU_SERIES),STM32F1xx STM32F3xx STM32F4xx STM32L4xx STM32G4xx WB32F3G71xx WB32FQ95xx GD32VF103),)
219+
else ifneq ($(filter $(MCU_SERIES),STM32F1xx STM32F3xx STM32F4xx STM32L4xx STM32G4xx WB32F3G71xx WB32FQ95xx AT32F415 GD32VF103),)
219220
# Wear-leveling EEPROM implementation, backed by MCU flash
220221
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_WEAR_LEVELING
221222
SRC += eeprom_driver.c eeprom_wear_leveling.c
@@ -238,10 +239,6 @@ else
238239
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_TRANSIENT
239240
SRC += eeprom_driver.c eeprom_transient.c
240241
endif
241-
else ifeq ($(PLATFORM),ARM_ATSAM)
242-
# arm_atsam EEPROM
243-
OPT_DEFS += -DEEPROM_SAMD
244-
SRC += eeprom_samd.c
245242
else ifeq ($(PLATFORM),TEST)
246243
# Test harness "EEPROM"
247244
OPT_DEFS += -DEEPROM_TEST_HARNESS
@@ -310,11 +307,11 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
310307
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight/rgblight_post_config.h
311308
OPT_DEFS += -DRGBLIGHT_ENABLE
312309
OPT_DEFS += -DRGBLIGHT_$(strip $(shell echo $(RGBLIGHT_DRIVER) | tr '[:lower:]' '[:upper:]'))
310+
SRC += $(QUANTUM_DIR)/process_keycode/process_underglow.c
313311
SRC += $(QUANTUM_DIR)/color.c
314312
SRC += $(QUANTUM_DIR)/rgblight/rgblight.c
315313
SRC += $(QUANTUM_DIR)/rgblight/rgblight_drivers.c
316314
CIE1931_CURVE := yes
317-
RGB_KEYCODES_ENABLE := yes
318315
endif
319316

320317
ifeq ($(strip $(RGBLIGHT_DRIVER)), ws2812)
@@ -460,12 +457,16 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
460457
COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations
461458
COMMON_VPATH += $(QUANTUM_DIR)/rgb_matrix/animations/runners
462459
POST_CONFIG_H += $(QUANTUM_DIR)/rgb_matrix/post_config.h
460+
461+
# TODO: Remove this
462+
SRC += $(QUANTUM_DIR)/process_keycode/process_underglow.c
463+
464+
SRC += $(QUANTUM_DIR)/process_keycode/process_rgb_matrix.c
463465
SRC += $(QUANTUM_DIR)/color.c
464466
SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix.c
465467
SRC += $(QUANTUM_DIR)/rgb_matrix/rgb_matrix_drivers.c
466468
LIB8TION_ENABLE := yes
467469
CIE1931_CURVE := yes
468-
RGB_KEYCODES_ENABLE := yes
469470

470471
ifeq ($(strip $(RGB_MATRIX_DRIVER)), aw20216s)
471472
SPI_DRIVER_REQUIRED = yes
@@ -568,10 +569,6 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
568569
endif
569570
endif
570571

571-
ifeq ($(strip $(RGB_KEYCODES_ENABLE)), yes)
572-
SRC += $(QUANTUM_DIR)/process_keycode/process_rgb.c
573-
endif
574-
575572
VARIABLE_TRACE ?= no
576573
ifneq ($(strip $(VARIABLE_TRACE)),no)
577574
SRC += $(QUANTUM_DIR)/variable_trace.c
@@ -881,7 +878,7 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
881878
OPT_DEFS += -DBLUETOOTH_$(strip $(shell echo $(BLUETOOTH_DRIVER) | tr '[:lower:]' '[:upper:]'))
882879
NO_USB_STARTUP_CHECK := yes
883880
COMMON_VPATH += $(DRIVER_PATH)/bluetooth
884-
SRC += outputselect.c
881+
SRC += outputselect.c process_connection.c
885882

886883
ifeq ($(strip $(BLUETOOTH_DRIVER)), bluefruit_le)
887884
SPI_DRIVER_REQUIRED = yes
@@ -936,7 +933,7 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
936933

937934
OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
938935

939-
SRC += ws2812_$(strip $(WS2812_DRIVER)).c
936+
SRC += ws2812.c ws2812_$(strip $(WS2812_DRIVER)).c
940937

941938
ifeq ($(strip $(PLATFORM)), CHIBIOS)
942939
ifeq ($(strip $(WS2812_DRIVER)), pwm)

builddefs/common_rules.mk

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@ ifneq ($(USE_CCACHE),no)
4343
CC_PREFIX ?= ccache
4444
endif
4545

46+
#---------------- Debug Options ----------------
47+
48+
DEBUG_ENABLE ?= no
49+
ifeq ($(strip $(DEBUG_ENABLE)),yes)
50+
CFLAGS += -ggdb3
51+
CXXFLAGS += -ggdb3
52+
ASFLAGS += -ggdb3
53+
# Create a map file when debugging
54+
LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref
55+
endif
56+
57+
4658
#---------------- C Compiler Options ----------------
4759

4860
ifeq ($(strip $(LTO_ENABLE)), yes)
49-
ifeq ($(PLATFORM),ARM_ATSAM)
50-
$(info Enabling LTO on arm_atsam-targeting boards is known to have a high likelihood of failure.)
51-
$(info If unsure, set LTO_ENABLE = no.)
52-
endif
5361
CDEFS += -flto
5462
CDEFS += -DLTO_ENABLE
5563
endif
5664

57-
DEBUG_ENABLE ?= yes
58-
ifeq ($(strip $(SKIP_DEBUG_INFO)),yes)
59-
DEBUG_ENABLE=no
60-
endif
61-
62-
ifeq ($(strip $(DEBUG_ENABLE)),yes)
63-
CFLAGS += -g$(DEBUG)
64-
endif
6565
CFLAGS += $(CDEFS)
6666
CFLAGS += -O$(OPT)
6767
# add color
@@ -83,9 +83,6 @@ CFLAGS += -fcommon
8383

8484
#---------------- C++ Compiler Options ----------------
8585

86-
ifeq ($(strip $(DEBUG_ENABLE)),yes)
87-
CXXFLAGS += -g$(DEBUG)
88-
endif
8986
CXXFLAGS += $(CXXDEFS)
9087
CXXFLAGS += -O$(OPT)
9188
# to suppress "warning: only initialized variables can be placed into program memory area"
@@ -106,14 +103,10 @@ endif
106103

107104
#---------------- Linker Options ----------------
108105

109-
CREATE_MAP ?= yes
110-
ifeq ($(CREATE_MAP),yes)
111-
LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref
112-
endif
113106
ifeq ($(VERBOSE_LD_CMD),yes)
114107
LDFLAGS += -v
115108
endif
116-
#LDFLAGS += -Wl,--relax
109+
117110
LDFLAGS += $(EXTMEMOPTS)
118111
LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS))
119112
LDFLAGS += -lm
@@ -126,15 +119,11 @@ ADHLNS_ENABLE ?= no
126119
ifeq ($(ADHLNS_ENABLE),yes)
127120
# Avoid "Options to '-Xassembler' do not match" - only specify assembler options at LTO link time
128121
ifeq ($(strip $(LTO_ENABLE)), yes)
129-
LDFLAGS += -Wa,-adhlns=$(BUILD_DIR)/$(TARGET).lst
122+
LDFLAGS += -Wa,-adhlns=$(BUILD_DIR)/$(TARGET).lst
130123
else
131-
CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
124+
CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
132125
CXXFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
133-
ifeq ($(strip $(DEBUG_ENABLE)),yes)
134-
ASFLAGS = -Wa,-adhlns=$(@:%.o=%.lst),-gstabs,--listing-cont-lines=100
135-
else
136-
ASFLAGS = -Wa,-adhlns=$(@:%.o=%.lst),--listing-cont-lines=100
137-
endif
126+
ASFLAGS += -Wa,-adhlns=$(@:%.o=%.lst),--listing-cont-lines=100
138127
endif
139128
endif
140129

builddefs/generic_features.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ GENERIC_FEATURES = \
3636
HAPTIC \
3737
KEY_LOCK \
3838
KEY_OVERRIDE \
39+
LAYER_LOCK \
3940
LEADER \
4041
MAGIC \
4142
MOUSEKEY \

builddefs/show_options.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ OTHER_OPTION_NAMES = \
6767
PS2_DRIVER \
6868
RAW_ENABLE \
6969
SWAP_HANDS_ENABLE \
70-
RING_BUFFERED_6KRO_REPORT_ENABLE \
7170
WATCHDOG_ENABLE \
7271
ERGOINU \
7372
NO_USB_STARTUP_CHECK \

data/constants/keycodes/keycodes_0.0.1_midi.hjson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"group": "midi",
8585
"key": "QK_MIDI_NOTE_G_SHARP_0",
8686
"aliases": [
87-
"MI_Gs"
87+
"MI_Gs",
8888
"MI_Ab"
8989
]
9090
},
@@ -99,7 +99,7 @@
9999
"group": "midi",
100100
"key": "QK_MIDI_NOTE_A_SHARP_0",
101101
"aliases": [
102-
"MI_As"
102+
"MI_As",
103103
"MI_Bb"
104104
]
105105
},

0 commit comments

Comments
 (0)