aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_keyboard.mk7
-rw-r--r--build_test.mk6
-rw-r--r--common_features.mk4
-rw-r--r--docs/feature_layers.md2
-rw-r--r--docs/fr-fr/faq_keymap.md2
-rw-r--r--docs/internals_gpio_control.md2
-rw-r--r--docs/ja/faq_keymap.md2
-rw-r--r--docs/ja/feature_layers.md2
-rw-r--r--docs/ja/pr_checklist.md2
-rw-r--r--docs/pr_checklist.md2
-rw-r--r--docs/zh-cn/faq_keymap.md2
-rw-r--r--keyboards/ai03/orbit/split_util.c2
-rw-r--r--keyboards/cannonkeys/satisfaction75/satisfaction75.c2
-rw-r--r--keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c2
-rw-r--r--keyboards/mxss/mxss.c2
-rw-r--r--keyboards/mxss/mxss_frontled.c2
-rw-r--r--keyboards/wilba_tech/wt_main.c2
-rw-r--r--keyboards/wilba_tech/wt_mono_backlight.c2
-rw-r--r--keyboards/wilba_tech/wt_rgb_backlight.c2
-rw-r--r--paths.mk3
-rw-r--r--platforms/arm_atsam/_timer.h (renamed from tmk_core/common/arm_atsam/_timer.h)0
-rw-r--r--platforms/arm_atsam/_wait.h (renamed from tmk_core/common/arm_atsam/_wait.h)0
-rw-r--r--platforms/arm_atsam/atomic_util.h (renamed from tmk_core/common/arm_atsam/atomic_util.h)0
-rw-r--r--platforms/arm_atsam/bootloader.c (renamed from tmk_core/common/arm_atsam/bootloader.c)0
-rw-r--r--platforms/arm_atsam/eeprom.c (renamed from tmk_core/common/arm_atsam/eeprom.c)0
-rw-r--r--platforms/arm_atsam/gpio.h (renamed from tmk_core/common/arm_atsam/gpio.h)0
-rw-r--r--platforms/arm_atsam/pin_defs.h (renamed from tmk_core/common/arm_atsam/pin_defs.h)0
-rw-r--r--platforms/arm_atsam/platform.c (renamed from tmk_core/common/arm_atsam/platform.c)0
-rw-r--r--platforms/arm_atsam/platform.mk (renamed from tmk_core/arm_atsam.mk)0
-rw-r--r--platforms/arm_atsam/platform_deps.h (renamed from tmk_core/common/arm_atsam/platform_deps.h)0
-rw-r--r--platforms/arm_atsam/suspend.c (renamed from tmk_core/common/arm_atsam/suspend.c)0
-rw-r--r--platforms/arm_atsam/timer.c (renamed from tmk_core/common/arm_atsam/timer.c)0
-rw-r--r--platforms/atomic_util.h (renamed from tmk_core/common/atomic_util.h)0
-rw-r--r--platforms/avr/_print.h (renamed from tmk_core/common/avr/_print.h)0
-rw-r--r--platforms/avr/_timer.h (renamed from tmk_core/common/avr/_timer.h)0
-rw-r--r--platforms/avr/_wait.h (renamed from tmk_core/common/avr/_wait.h)0
-rw-r--r--platforms/avr/atomic_util.h (renamed from tmk_core/common/avr/atomic_util.h)0
-rw-r--r--platforms/avr/bootloader.c (renamed from tmk_core/common/avr/bootloader.c)0
-rw-r--r--platforms/avr/bootloader_size.c (renamed from tmk_core/common/avr/bootloader_size.c)0
-rw-r--r--platforms/avr/gpio.h (renamed from tmk_core/common/avr/gpio.h)0
-rw-r--r--platforms/avr/pin_defs.h (renamed from tmk_core/common/avr/pin_defs.h)0
-rw-r--r--platforms/avr/platform.c (renamed from tmk_core/common/avr/platform.c)0
-rw-r--r--platforms/avr/platform.mk (renamed from tmk_core/avr.mk)2
-rw-r--r--platforms/avr/platform_deps.h (renamed from tmk_core/common/avr/platform_deps.h)0
-rw-r--r--platforms/avr/printf.c (renamed from tmk_core/common/avr/printf.c)0
-rw-r--r--platforms/avr/printf.mk (renamed from tmk_core/common/avr/printf.mk)0
-rw-r--r--platforms/avr/sleep_led.c (renamed from tmk_core/common/avr/sleep_led.c)0
-rw-r--r--platforms/avr/suspend.c (renamed from tmk_core/common/avr/suspend.c)0
-rw-r--r--platforms/avr/timer.c (renamed from tmk_core/common/avr/timer.c)0
-rw-r--r--platforms/avr/timer_avr.h (renamed from tmk_core/common/avr/timer_avr.h)0
-rw-r--r--platforms/avr/xprintf.S (renamed from tmk_core/common/avr/xprintf.S)0
-rw-r--r--platforms/avr/xprintf.h (renamed from tmk_core/common/avr/xprintf.h)0
-rw-r--r--platforms/bootloader.h (renamed from tmk_core/common/bootloader.h)0
-rw-r--r--platforms/chibios/_timer.h (renamed from tmk_core/common/chibios/_timer.h)0
-rw-r--r--platforms/chibios/_wait.c (renamed from tmk_core/common/chibios/_wait.c)0
-rw-r--r--platforms/chibios/_wait.h (renamed from tmk_core/common/chibios/_wait.h)0
-rw-r--r--platforms/chibios/atomic_util.h (renamed from tmk_core/common/chibios/atomic_util.h)0
-rw-r--r--platforms/chibios/bootloader.c (renamed from tmk_core/common/chibios/bootloader.c)0
-rw-r--r--platforms/chibios/chibios_config.h (renamed from tmk_core/common/chibios/chibios_config.h)0
-rw-r--r--platforms/chibios/eeprom_stm32.c (renamed from tmk_core/common/chibios/eeprom_stm32.c)0
-rw-r--r--platforms/chibios/eeprom_stm32.h (renamed from tmk_core/common/chibios/eeprom_stm32.h)0
-rw-r--r--platforms/chibios/eeprom_stm32_defs.h (renamed from tmk_core/common/chibios/eeprom_stm32_defs.h)0
-rw-r--r--platforms/chibios/eeprom_teensy.c (renamed from tmk_core/common/chibios/eeprom_teensy.c)0
-rw-r--r--platforms/chibios/flash_stm32.c (renamed from tmk_core/common/chibios/flash_stm32.c)0
-rw-r--r--platforms/chibios/flash_stm32.h (renamed from tmk_core/common/chibios/flash_stm32.h)0
-rw-r--r--platforms/chibios/gd32v_compatibility.h (renamed from tmk_core/common/chibios/gd32v_compatibility.h)0
-rw-r--r--platforms/chibios/gpio.h (renamed from tmk_core/common/chibios/gpio.h)0
-rw-r--r--platforms/chibios/pin_defs.h (renamed from tmk_core/common/chibios/pin_defs.h)0
-rw-r--r--platforms/chibios/platform.c (renamed from tmk_core/common/chibios/platform.c)0
-rw-r--r--platforms/chibios/platform.mk (renamed from tmk_core/chibios.mk)0
-rw-r--r--platforms/chibios/platform_deps.h (renamed from tmk_core/common/chibios/platform_deps.h)0
-rw-r--r--platforms/chibios/sleep_led.c (renamed from tmk_core/common/chibios/sleep_led.c)0
-rw-r--r--platforms/chibios/suspend.c (renamed from tmk_core/common/chibios/suspend.c)0
-rw-r--r--platforms/chibios/syscall-fallbacks.c (renamed from tmk_core/common/chibios/syscall-fallbacks.c)0
-rw-r--r--platforms/chibios/timer.c (renamed from tmk_core/common/chibios/timer.c)0
-rw-r--r--platforms/chibios/wait.c (renamed from tmk_core/common/chibios/wait.c)0
-rw-r--r--platforms/common.mk12
-rw-r--r--platforms/eeprom.h (renamed from tmk_core/common/eeprom.h)0
-rw-r--r--platforms/gpio.h (renamed from tmk_core/common/gpio.h)0
-rw-r--r--platforms/pin_defs.h (renamed from tmk_core/common/pin_defs.h)0
-rw-r--r--platforms/progmem.h (renamed from tmk_core/common/progmem.h)0
-rw-r--r--platforms/sleep_led.h (renamed from tmk_core/common/sleep_led.h)0
-rw-r--r--platforms/suspend.h (renamed from tmk_core/common/suspend.h)0
-rw-r--r--platforms/test/_wait.h (renamed from tmk_core/common/test/_wait.h)0
-rw-r--r--platforms/test/bootloader.c (renamed from tmk_core/common/test/bootloader.c)0
-rw-r--r--platforms/test/eeprom.c (renamed from tmk_core/common/test/eeprom.c)0
-rw-r--r--platforms/test/eeprom_stm32_tests.cpp (renamed from tmk_core/common/test/eeprom_stm32_tests.cpp)0
-rw-r--r--platforms/test/flash_stm32_mock.c (renamed from tmk_core/common/test/flash_stm32_mock.c)0
-rw-r--r--platforms/test/hal.h (renamed from tmk_core/common/test/hal.h)0
-rw-r--r--platforms/test/platform.c (renamed from tmk_core/common/test/platform.c)0
-rw-r--r--platforms/test/platform.h (renamed from tmk_core/common/test/platform.h)0
-rw-r--r--platforms/test/platform.mk (renamed from tmk_core/native.mk)0
-rw-r--r--platforms/test/platform_deps.h (renamed from tmk_core/common/test/platform_deps.h)0
-rw-r--r--platforms/test/rules.mk (renamed from tmk_core/common/test/rules.mk)8
-rw-r--r--platforms/test/suspend.c (renamed from tmk_core/common/test/suspend.c)0
-rw-r--r--platforms/test/testlist.mk (renamed from tmk_core/common/test/testlist.mk)0
-rw-r--r--platforms/test/timer.c (renamed from tmk_core/common/test/timer.c)0
-rw-r--r--platforms/timer.h (renamed from tmk_core/common/timer.h)0
-rw-r--r--platforms/wait.h (renamed from tmk_core/common/wait.h)0
-rw-r--r--quantum/debounce/tests/rules.mk2
-rw-r--r--quantum/dynamic_keymap.c2
-rw-r--r--quantum/sequencer/tests/rules.mk2
-rw-r--r--quantum/via.c2
-rw-r--r--testlist.mk6
-rw-r--r--tmk_core/common.mk16
-rw-r--r--tmk_core/protocol.mk2
-rw-r--r--tmk_core/rules.mk2
107 files changed, 54 insertions, 54 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 36c628c7c..c12aa0fce 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -388,7 +388,7 @@ VPATH += $(COMMON_VPATH)
388include common_features.mk 388include common_features.mk
389include $(BUILDDEFS_PATH)/generic_features.mk 389include $(BUILDDEFS_PATH)/generic_features.mk
390include $(TMK_PATH)/protocol.mk 390include $(TMK_PATH)/protocol.mk
391include $(TMK_PATH)/common.mk 391include $(PLATFORM_PATH)/common.mk
392include $(BUILDDEFS_PATH)/bootloader.mk 392include $(BUILDDEFS_PATH)/bootloader.mk
393 393
394SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) 394SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
@@ -404,13 +404,14 @@ ifneq ($(REQUIRE_PLATFORM_KEY),)
404 endif 404 endif
405endif 405endif
406 406
407include $(TMK_PATH)/$(PLATFORM_KEY).mk 407include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk
408-include $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash.mk
409
408ifneq ($(strip $(PROTOCOL)),) 410ifneq ($(strip $(PROTOCOL)),)
409 include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk 411 include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk
410else 412else
411 include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk 413 include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk
412endif 414endif
413-include $(TOP_DIR)/platforms/$(PLATFORM_KEY)/flash.mk
414 415
415# TODO: remove this bodge? 416# TODO: remove this bodge?
416PROJECT_DEFS := $(OPT_DEFS) 417PROJECT_DEFS := $(OPT_DEFS)
diff --git a/build_test.mk b/build_test.mk
index 6e4494d77..3553125a0 100644
--- a/build_test.mk
+++ b/build_test.mk
@@ -54,11 +54,11 @@ endif
54 54
55include common_features.mk 55include common_features.mk
56include $(BUILDDEFS_PATH)/generic_features.mk 56include $(BUILDDEFS_PATH)/generic_features.mk
57include $(TMK_PATH)/common.mk 57include $(PLATFORM_PATH)/common.mk
58include $(TMK_PATH)/protocol.mk 58include $(TMK_PATH)/protocol.mk
59include $(QUANTUM_PATH)/debounce/tests/rules.mk 59include $(QUANTUM_PATH)/debounce/tests/rules.mk
60include $(QUANTUM_PATH)/sequencer/tests/rules.mk 60include $(QUANTUM_PATH)/sequencer/tests/rules.mk
61include $(TMK_PATH)/common/test/rules.mk 61include $(PLATFORM_PATH)/test/rules.mk
62ifneq ($(filter $(FULL_TESTS),$(TEST)),) 62ifneq ($(filter $(FULL_TESTS),$(TEST)),)
63include build_full_test.mk 63include build_full_test.mk
64endif 64endif
@@ -73,7 +73,7 @@ $(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC)
73$(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS) 73$(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS)
74$(TEST_OBJ)/$(TEST)_CONFIG := $($(TEST)_CONFIG) 74$(TEST_OBJ)/$(TEST)_CONFIG := $($(TEST)_CONFIG)
75 75
76include $(TMK_PATH)/native.mk 76include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk
77include $(TMK_PATH)/rules.mk 77include $(TMK_PATH)/rules.mk
78 78
79 79
diff --git a/common_features.mk b/common_features.mk
index 896fbb012..8c593024f 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -33,8 +33,10 @@ QUANTUM_SRC += \
33 33
34VPATH += $(QUANTUM_DIR)/logging 34VPATH += $(QUANTUM_DIR)/logging
35# Fall back to lib/printf if there is no platform provided print 35# Fall back to lib/printf if there is no platform provided print
36ifeq ("$(wildcard $(TMK_PATH)/common/$(PLATFORM_KEY)/printf.mk)","") 36ifeq ("$(wildcard $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk)","")
37 include $(QUANTUM_PATH)/logging/print.mk 37 include $(QUANTUM_PATH)/logging/print.mk
38else
39 include $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk
38endif 40endif
39 41
40ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes) 42ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes)
diff --git a/docs/feature_layers.md b/docs/feature_layers.md
index 78d950dc4..e30c540a7 100644
--- a/docs/feature_layers.md
+++ b/docs/feature_layers.md
@@ -45,7 +45,7 @@ Once you have a good feel for how layers work and what you can do, you can get m
45 45
46Layers stack on top of each other in numerical order. When determining what a keypress does, QMK scans the layers from the top down, stopping when it reaches the first active layer that is not set to `KC_TRNS`. As a result if you activate a layer that is numerically lower than your current layer, and your current layer (or another layer that is active and higher than your target layer) has something other than `KC_TRNS`, that is the key that will be sent, not the key on the layer you just activated. This is the cause of most people's "why doesn't my layer get switched" problem. 46Layers stack on top of each other in numerical order. When determining what a keypress does, QMK scans the layers from the top down, stopping when it reaches the first active layer that is not set to `KC_TRNS`. As a result if you activate a layer that is numerically lower than your current layer, and your current layer (or another layer that is active and higher than your target layer) has something other than `KC_TRNS`, that is the key that will be sent, not the key on the layer you just activated. This is the cause of most people's "why doesn't my layer get switched" problem.
47 47
48Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h). 48Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/action_layer.h).
49 49
50## Functions :id=functions 50## Functions :id=functions
51 51
diff --git a/docs/fr-fr/faq_keymap.md b/docs/fr-fr/faq_keymap.md
index 374a00522..cc0700ab8 100644
--- a/docs/fr-fr/faq_keymap.md
+++ b/docs/fr-fr/faq_keymap.md
@@ -6,7 +6,7 @@ Cette page couvre les questions souvent posées à propos des keymaps. Si vous n
6 6
7Regardez [Keycodes](keycodes.md) pour une liste des keycodes disponibles. Certains keycodes spécifiques ont des documentations plus complètes de disponible. 7Regardez [Keycodes](keycodes.md) pour une liste des keycodes disponibles. Certains keycodes spécifiques ont des documentations plus complètes de disponible.
8 8
9Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h). 9Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h).
10 10
11## Quels sont les keycodes par défaut ? 11## Quels sont les keycodes par défaut ?
12 12
diff --git a/docs/internals_gpio_control.md b/docs/internals_gpio_control.md
index 21a3bd661..ccd3f8c74 100644
--- a/docs/internals_gpio_control.md
+++ b/docs/internals_gpio_control.md
@@ -4,7 +4,7 @@ QMK has a GPIO control abstraction layer which is microcontroller agnostic. This
4 4
5## Functions :id=functions 5## Functions :id=functions
6 6
7The following functions provide basic control of GPIOs and are found in `tmk_core/common/<platform>/gpio.h`. 7The following functions provide basic control of GPIOs and are found in `platforms/<platform>/gpio.h`.
8 8
9|Function |Description | Old AVR Examples | Old ChibiOS/ARM Examples | 9|Function |Description | Old AVR Examples | Old ChibiOS/ARM Examples |
10|------------------------|--------------------------------------------------|-------------------------------------------------|-------------------------------------------------| 10|------------------------|--------------------------------------------------|-------------------------------------------------|-------------------------------------------------|
diff --git a/docs/ja/faq_keymap.md b/docs/ja/faq_keymap.md
index fb44e316b..59c7d206a 100644
--- a/docs/ja/faq_keymap.md
+++ b/docs/ja/faq_keymap.md
@@ -10,7 +10,7 @@
10## ã©ã®ã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã‚’使ãˆã¾ã™ã‹ï¼Ÿ 10## ã©ã®ã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã‚’使ãˆã¾ã™ã‹ï¼Ÿ
11ã‚ãªãŸãŒåˆ©ç”¨å¯èƒ½ãªã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã®ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ã«ã¤ã„ã¦ã¯ã€[キーコード](ja/keycodes.md)を見ã¦ãã ã•ã„。より広範ãªãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãŒã‚ã‚‹å ´åˆã¯ã€ãã“ã‹ã‚‰ãƒªãƒ³ã‚¯ã—ã¦ã‚りã¾ã™ã€‚ 11ã‚ãªãŸãŒåˆ©ç”¨å¯èƒ½ãªã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã®ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ã«ã¤ã„ã¦ã¯ã€[キーコード](ja/keycodes.md)を見ã¦ãã ã•ã„。より広範ãªãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆãŒã‚ã‚‹å ´åˆã¯ã€ãã“ã‹ã‚‰ãƒªãƒ³ã‚¯ã—ã¦ã‚りã¾ã™ã€‚
12 12
13キーコードã¯å®Ÿéš›ã«ã¯ [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h) ã§å®šç¾©ã•れã¦ã„ã¾ã™ã€‚ 13キーコードã¯å®Ÿéš›ã«ã¯ [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h) ã§å®šç¾©ã•れã¦ã„ã¾ã™ã€‚
14 14
15## デフォルトã®ã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã¨ã¯ä½•ã‹ï¼Ÿ 15## デフォルトã®ã‚­ãƒ¼ã‚³ãƒ¼ãƒ‰ã¨ã¯ä½•ã‹ï¼Ÿ
16 16
diff --git a/docs/ja/feature_layers.md b/docs/ja/feature_layers.md
index 011f0e0ef..ca3e05583 100644
--- a/docs/ja/feature_layers.md
+++ b/docs/ja/feature_layers.md
@@ -50,7 +50,7 @@ QMK を使ã„å§‹ã‚ãŸã°ã‹ã‚Šã®å ´åˆã¯ã€å…¨ã¦ã‚’å˜ç´”ã«ã—ãŸã„ã§ã—ã
50 50
51レイヤーã¯ç•ªå·é †ã«ä¸Šã«ç©ã¿é‡ãªã£ã¦ã„ã¾ã™ã€‚ã‚­ãƒ¼ã®æŠ¼ä¸‹ã®å‹•作を決定ã™ã‚‹æ™‚ã«ã€QMK ã¯ä¸Šã‹ã‚‰é †ã«ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’走査ã—ã€`KC_TRNS` ã«è¨­å®šã•れã¦ã„ãªã„最åˆã®ã‚¢ã‚¯ãƒ†ã‚£ãƒ–ãªãƒ¬ã‚¤ãƒ¤ãƒ¼ã«åˆ°é”ã™ã‚‹ã¨åœæ­¢ã—ã¾ã™ã€‚çµæžœã¨ã—ã¦ã€ç¾åœ¨ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚ˆã‚Šã‚‚数値的ã«ä½Žã„レイヤーをアクティブã«ã—ã€ç¾åœ¨ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼(ã‚ã‚‹ã„ã¯ã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã§ã‚¿ãƒ¼ã‚²ãƒƒãƒˆãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚ˆã‚Šã‚‚高ã„別ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼)ã« `KC_TRNS` 以外ã®ã‚‚ã®ãŒã‚ã‚‹å ´åˆã€ãれãŒé€ä¿¡ã•れるキーã§ã‚りã€ã‚¢ã‚¯ãƒ†ã‚£ãƒ–化ã—ãŸã°ã‹ã‚Šã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ä¸Šã®ã‚­ãƒ¼ã§ã¯ã‚りã¾ã›ã‚“。ã“れãŒã€ã»ã¨ã‚“ã©ã®äººã® "ãªãœãƒ¬ã‚¤ãƒ¤ãƒ¼ãŒåˆ‡ã‚Šæ›¿ã‚らãªã„ã®ã‹" å•題ã®åŽŸå› ã§ã™ã€‚ 51レイヤーã¯ç•ªå·é †ã«ä¸Šã«ç©ã¿é‡ãªã£ã¦ã„ã¾ã™ã€‚ã‚­ãƒ¼ã®æŠ¼ä¸‹ã®å‹•作を決定ã™ã‚‹æ™‚ã«ã€QMK ã¯ä¸Šã‹ã‚‰é †ã«ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’走査ã—ã€`KC_TRNS` ã«è¨­å®šã•れã¦ã„ãªã„最åˆã®ã‚¢ã‚¯ãƒ†ã‚£ãƒ–ãªãƒ¬ã‚¤ãƒ¤ãƒ¼ã«åˆ°é”ã™ã‚‹ã¨åœæ­¢ã—ã¾ã™ã€‚çµæžœã¨ã—ã¦ã€ç¾åœ¨ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚ˆã‚Šã‚‚数値的ã«ä½Žã„レイヤーをアクティブã«ã—ã€ç¾åœ¨ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼(ã‚ã‚‹ã„ã¯ã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã§ã‚¿ãƒ¼ã‚²ãƒƒãƒˆãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚ˆã‚Šã‚‚高ã„別ã®ãƒ¬ã‚¤ãƒ¤ãƒ¼)ã« `KC_TRNS` 以外ã®ã‚‚ã®ãŒã‚ã‚‹å ´åˆã€ãれãŒé€ä¿¡ã•れるキーã§ã‚りã€ã‚¢ã‚¯ãƒ†ã‚£ãƒ–化ã—ãŸã°ã‹ã‚Šã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ä¸Šã®ã‚­ãƒ¼ã§ã¯ã‚りã¾ã›ã‚“。ã“れãŒã€ã»ã¨ã‚“ã©ã®äººã® "ãªãœãƒ¬ã‚¤ãƒ¤ãƒ¼ãŒåˆ‡ã‚Šæ›¿ã‚らãªã„ã®ã‹" å•題ã®åŽŸå› ã§ã™ã€‚
52 52
53å ´åˆã«ã‚ˆã£ã¦ã¯ã€ãƒžã‚¯ãƒ­å†…ã‚ã‚‹ã„ã¯ã‚¿ãƒƒãƒ—ダンスルーãƒãƒ³ã®ä¸€éƒ¨ã¨ã—ã¦ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’切り替ãˆã»ã†ãŒè‰¯ã„ã‹ã‚‚ã—れã¾ã›ã‚“。`layer_on` ã¯ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’アクティブã«ã—ã€`layer_off` ã¯ãれをéžã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã«ã—ã¾ã™ã€‚ã‚‚ã£ã¨å¤šãã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ã«é–¢ã™ã‚‹é–¢æ•°ã¯ã€[action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h) ã§è¦‹ã¤ã‘ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ 53å ´åˆã«ã‚ˆã£ã¦ã¯ã€ãƒžã‚¯ãƒ­å†…ã‚ã‚‹ã„ã¯ã‚¿ãƒƒãƒ—ダンスルーãƒãƒ³ã®ä¸€éƒ¨ã¨ã—ã¦ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’切り替ãˆã»ã†ãŒè‰¯ã„ã‹ã‚‚ã—れã¾ã›ã‚“。`layer_on` ã¯ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’アクティブã«ã—ã€`layer_off` ã¯ãれをéžã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã«ã—ã¾ã™ã€‚ã‚‚ã£ã¨å¤šãã®ãƒ¬ã‚¤ãƒ¤ãƒ¼ã«é–¢ã™ã‚‹é–¢æ•°ã¯ã€[action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/action_layer.h) ã§è¦‹ã¤ã‘ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
54 54
55## 関数 :id=functions 55## 関数 :id=functions
56 56
diff --git a/docs/ja/pr_checklist.md b/docs/ja/pr_checklist.md
index 18dbecceb..caab2b4d5 100644
--- a/docs/ja/pr_checklist.md
+++ b/docs/ja/pr_checklist.md
@@ -27,7 +27,7 @@
27 - 「旧å¼ã®ã€ GPIO/I2C/SPI 関数を使用ã—ãªã„ - 正当ãªç†ç”±ãŒãªã„é™ã‚Šã€QMK ã®æŠ½è±¡åŒ–ã‚’ä½¿ç”¨ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“ (æ€ æƒ°ã¯æ­£å½“ãªç†ç”±ã«ã¯ãªã‚Šã¾ã›ã‚“) 27 - 「旧å¼ã®ã€ GPIO/I2C/SPI 関数を使用ã—ãªã„ - 正当ãªç†ç”±ãŒãªã„é™ã‚Šã€QMK ã®æŠ½è±¡åŒ–ã‚’ä½¿ç”¨ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“ (æ€ æƒ°ã¯æ­£å½“ãªç†ç”±ã«ã¯ãªã‚Šã¾ã›ã‚“)
28 - ã‚¿ã‚¤ãƒŸãƒ³ã‚°ã®æŠ½è±¡åŒ–ã«ã‚‚従ã†å¿…è¦ãŒã‚りã¾ã™: 28 - ã‚¿ã‚¤ãƒŸãƒ³ã‚°ã®æŠ½è±¡åŒ–ã«ã‚‚従ã†å¿…è¦ãŒã‚りã¾ã™:
29 - `_delay_ms()` ã®ã‹ã‚り㫠`wait_ms()` を。(`#include <util/delay.h>` も消ã—ã¾ã™) 29 - `_delay_ms()` ã®ã‹ã‚り㫠`wait_ms()` を。(`#include <util/delay.h>` も消ã—ã¾ã™)
30 - `timer_read()` 㨠`timer_read32()` ãªã©ã€‚ -- タイミング API 㯠[timer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/timer.h) ã‚’å‚ç…§ã—ã¦ãã ã•ã„ 30 - `timer_read()` 㨠`timer_read32()` ãªã©ã€‚ -- タイミング API 㯠[timer.h](https://github.com/qmk/qmk_firmware/blob/master/platforms/timer.h) ã‚’å‚ç…§ã—ã¦ãã ã•ã„
31 - æ–°ã—ã„æŠ½è±¡åŒ–ãŒæœ‰ç”¨ã ã¨æ€ã†å ´åˆã¯ã€æ¬¡ã®ã“ã¨ã‚’ãŠå‹§ã‚ã—ã¾ã™: 31 - æ–°ã—ã„æŠ½è±¡åŒ–ãŒæœ‰ç”¨ã ã¨æ€ã†å ´åˆã¯ã€æ¬¡ã®ã“ã¨ã‚’ãŠå‹§ã‚ã—ã¾ã™:
32 - 機能ãŒå®Œæˆã™ã‚‹ã¾ã§è‡ªåˆ†ã®ã‚­ãƒ¼ãƒœãƒ¼ãƒ‰ã§ãƒ—ロトタイプを作æˆã™ã‚‹ 32 - 機能ãŒå®Œæˆã™ã‚‹ã¾ã§è‡ªåˆ†ã®ã‚­ãƒ¼ãƒœãƒ¼ãƒ‰ã§ãƒ—ロトタイプを作æˆã™ã‚‹
33 - Discord ã® QMK コラボレータã¨è©±ã—åˆã† 33 - Discord ã® QMK コラボレータã¨è©±ã—åˆã†
diff --git a/docs/pr_checklist.md b/docs/pr_checklist.md
index 94c62c653..2a2b0f1e7 100644
--- a/docs/pr_checklist.md
+++ b/docs/pr_checklist.md
@@ -24,7 +24,7 @@ If there are any inconsistencies with these recommendations, you're best off [cr
24 - no "old-school" or other low-level GPIO/I2C/SPI functions may be used -- must use QMK abstractions unless justifiable (and laziness is not valid justification) 24 - no "old-school" or other low-level GPIO/I2C/SPI functions may be used -- must use QMK abstractions unless justifiable (and laziness is not valid justification)
25 - timing abstractions should be followed too: 25 - timing abstractions should be followed too:
26 - `wait_ms()` instead of `_delay_ms()` (remove `#include <util/delay.h>` too) 26 - `wait_ms()` instead of `_delay_ms()` (remove `#include <util/delay.h>` too)
27 - `timer_read()` and `timer_read32()` etc. -- see [timer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/timer.h) for the timing APIs 27 - `timer_read()` and `timer_read32()` etc. -- see [timer.h](https://github.com/qmk/qmk_firmware/blob/master/platforms/timer.h) for the timing APIs
28 - if you think a new abstraction is useful, you're encouraged to: 28 - if you think a new abstraction is useful, you're encouraged to:
29 - prototype it in your own keyboard until it's feature-complete 29 - prototype it in your own keyboard until it's feature-complete
30 - discuss it with QMK Collaborators on Discord 30 - discuss it with QMK Collaborators on Discord
diff --git a/docs/zh-cn/faq_keymap.md b/docs/zh-cn/faq_keymap.md
index fdfa25ad9..ff38f3889 100644
--- a/docs/zh-cn/faq_keymap.md
+++ b/docs/zh-cn/faq_keymap.md
@@ -5,7 +5,7 @@
5## 我能用什么键� 5## 我能用什么键�
6看[é”®ç ](keycodes.md)ä½ å¯ä»¥æ‰¾åˆ°ä½ èƒ½ç”¨çš„é”®ç ç´¢å¼•。å¯ä»¥çš„è¯è¿™äº›é“¾æŽ¥å¯ä»¥è¿žæŽ¥åˆ°æ›´å¹¿æ³›çš„æ–‡æ¡£ã€‚ 6看[é”®ç ](keycodes.md)ä½ å¯ä»¥æ‰¾åˆ°ä½ èƒ½ç”¨çš„é”®ç ç´¢å¼•。å¯ä»¥çš„è¯è¿™äº›é“¾æŽ¥å¯ä»¥è¿žæŽ¥åˆ°æ›´å¹¿æ³›çš„æ–‡æ¡£ã€‚
7 7
8é”®ç å®žé™…上定义在[common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h). 8é”®ç å®žé™…上定义在[common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h).
9 9
10## 默认的键ç ä»€ä¹ˆæ ·? 10## 默认的键ç ä»€ä¹ˆæ ·?
11 11
diff --git a/keyboards/ai03/orbit/split_util.c b/keyboards/ai03/orbit/split_util.c
index a83ff5bc6..2352e5a11 100644
--- a/keyboards/ai03/orbit/split_util.c
+++ b/keyboards/ai03/orbit/split_util.c
@@ -8,7 +8,7 @@
8#include "quantum.h" 8#include "quantum.h"
9 9
10#ifdef EE_HANDS 10#ifdef EE_HANDS
11# include "tmk_core/common/eeprom.h" 11# include "eeprom.h"
12# include "eeconfig.h" 12# include "eeconfig.h"
13#endif 13#endif
14 14
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.c b/keyboards/cannonkeys/satisfaction75/satisfaction75.c
index 8b5016437..bd7eaf188 100644
--- a/keyboards/cannonkeys/satisfaction75/satisfaction75.c
+++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.c
@@ -9,7 +9,7 @@
9 9
10#include "raw_hid.h" 10#include "raw_hid.h"
11#include "dynamic_keymap.h" 11#include "dynamic_keymap.h"
12#include "tmk_core/common/eeprom.h" 12#include "eeprom.h"
13#include "version.h" // for QMK_BUILDDATE used in EEPROM magic 13#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
14 14
15/* Artificial delay added to get media keys to work in the encoder*/ 15/* Artificial delay added to get media keys to work in the encoder*/
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c b/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c
index cefdbc5f9..0d2fdc359 100644
--- a/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c
+++ b/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c
@@ -1,5 +1,5 @@
1#include "satisfaction75.h" 1#include "satisfaction75.h"
2#include "tmk_core/common/eeprom.h" 2#include "eeprom.h"
3 3
4void pre_encoder_mode_change(){ 4void pre_encoder_mode_change(){
5 if(encoder_mode == ENC_MODE_CLOCK_SET){ 5 if(encoder_mode == ENC_MODE_CLOCK_SET){
diff --git a/keyboards/mxss/mxss.c b/keyboards/mxss/mxss.c
index f591d39e6..21beee232 100644
--- a/keyboards/mxss/mxss.c
+++ b/keyboards/mxss/mxss.c
@@ -17,7 +17,7 @@
17 */ 17 */
18 18
19#include QMK_KEYBOARD_H 19#include QMK_KEYBOARD_H
20#include "tmk_core/common/eeprom.h" 20#include "eeprom.h"
21#include "action_layer.h" 21#include "action_layer.h"
22#include "rgblight.h" 22#include "rgblight.h"
23#include "via.h" 23#include "via.h"
diff --git a/keyboards/mxss/mxss_frontled.c b/keyboards/mxss/mxss_frontled.c
index 3c4309f07..f5e4613df 100644
--- a/keyboards/mxss/mxss_frontled.c
+++ b/keyboards/mxss/mxss_frontled.c
@@ -17,7 +17,7 @@
17 */ 17 */
18 18
19#include "mxss_frontled.h" 19#include "mxss_frontled.h"
20#include "tmk_core/common/eeprom.h" 20#include "eeprom.h"
21#include "rgblight.h" 21#include "rgblight.h"
22#include "via.h" 22#include "via.h"
23#include "version.h" // for QMK_BUILDDATE used in EEPROM magic 23#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
diff --git a/keyboards/wilba_tech/wt_main.c b/keyboards/wilba_tech/wt_main.c
index d5e136e06..a8ad79544 100644
--- a/keyboards/wilba_tech/wt_main.c
+++ b/keyboards/wilba_tech/wt_main.c
@@ -27,7 +27,7 @@
27#include "via.h" 27#include "via.h"
28 28
29#ifndef VIA_ENABLE 29#ifndef VIA_ENABLE
30#include "tmk_core/common/eeprom.h" 30#include "eeprom.h"
31#include "version.h" // for QMK_BUILDDATE used in EEPROM magic 31#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
32#endif 32#endif
33 33
diff --git a/keyboards/wilba_tech/wt_mono_backlight.c b/keyboards/wilba_tech/wt_mono_backlight.c
index 77cee34ca..5e2fde810 100644
--- a/keyboards/wilba_tech/wt_mono_backlight.c
+++ b/keyboards/wilba_tech/wt_mono_backlight.c
@@ -24,7 +24,7 @@
24 24
25#include "progmem.h" 25#include "progmem.h"
26#include "quantum/color.h" 26#include "quantum/color.h"
27#include "tmk_core/common/eeprom.h" 27#include "eeprom.h"
28 28
29#include "via.h" // uses EEPROM address, lighting value IDs 29#include "via.h" // uses EEPROM address, lighting value IDs
30#define MONO_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR) 30#define MONO_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR)
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c
index 82b1fb2fb..63763c6c9 100644
--- a/keyboards/wilba_tech/wt_rgb_backlight.c
+++ b/keyboards/wilba_tech/wt_rgb_backlight.c
@@ -68,7 +68,7 @@ LED_TYPE g_ws2812_leds[WS2812_LED_TOTAL];
68 68
69#include "progmem.h" 69#include "progmem.h"
70#include "quantum/color.h" 70#include "quantum/color.h"
71#include "tmk_core/common/eeprom.h" 71#include "eeprom.h"
72 72
73#include "via.h" // uses EEPROM address, lighting value IDs 73#include "via.h" // uses EEPROM address, lighting value IDs
74#define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR) 74#define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR)
diff --git a/paths.mk b/paths.mk
index 7be1b2ce0..5a39d00ec 100644
--- a/paths.mk
+++ b/paths.mk
@@ -13,6 +13,9 @@ DRIVER_PATH = $(DRIVER_DIR)
13PLATFORM_DIR = platforms 13PLATFORM_DIR = platforms
14PLATFORM_PATH = $(PLATFORM_DIR) 14PLATFORM_PATH = $(PLATFORM_DIR)
15 15
16PROTOCOL_DIR = protocol
17PROTOCOL_PATH = $(TMK_DIR)/$(PROTOCOL_DIR)
18
16BUILDDEFS_DIR = builddefs 19BUILDDEFS_DIR = builddefs
17BUILDDEFS_PATH = $(BUILDDEFS_DIR) 20BUILDDEFS_PATH = $(BUILDDEFS_DIR)
18 21
diff --git a/tmk_core/common/arm_atsam/_timer.h b/platforms/arm_atsam/_timer.h
index 77402b612..77402b612 100644
--- a/tmk_core/common/arm_atsam/_timer.h
+++ b/platforms/arm_atsam/_timer.h
diff --git a/tmk_core/common/arm_atsam/_wait.h b/platforms/arm_atsam/_wait.h
index 41b686b56..41b686b56 100644
--- a/tmk_core/common/arm_atsam/_wait.h
+++ b/platforms/arm_atsam/_wait.h
diff --git a/tmk_core/common/arm_atsam/atomic_util.h b/platforms/arm_atsam/atomic_util.h
index 848542d23..848542d23 100644
--- a/tmk_core/common/arm_atsam/atomic_util.h
+++ b/platforms/arm_atsam/atomic_util.h
diff --git a/tmk_core/common/arm_atsam/bootloader.c b/platforms/arm_atsam/bootloader.c
index 9015b00aa..9015b00aa 100644
--- a/tmk_core/common/arm_atsam/bootloader.c
+++ b/platforms/arm_atsam/bootloader.c
diff --git a/tmk_core/common/arm_atsam/eeprom.c b/platforms/arm_atsam/eeprom.c
index ff1a69262..ff1a69262 100644
--- a/tmk_core/common/arm_atsam/eeprom.c
+++ b/platforms/arm_atsam/eeprom.c
diff --git a/tmk_core/common/arm_atsam/gpio.h b/platforms/arm_atsam/gpio.h
index 915ed0ef4..915ed0ef4 100644
--- a/tmk_core/common/arm_atsam/gpio.h
+++ b/platforms/arm_atsam/gpio.h
diff --git a/tmk_core/common/arm_atsam/pin_defs.h b/platforms/arm_atsam/pin_defs.h
index 5b50b2391..5b50b2391 100644
--- a/tmk_core/common/arm_atsam/pin_defs.h
+++ b/platforms/arm_atsam/pin_defs.h
diff --git a/tmk_core/common/arm_atsam/platform.c b/platforms/arm_atsam/platform.c
index 3e35b4fe4..3e35b4fe4 100644
--- a/tmk_core/common/arm_atsam/platform.c
+++ b/platforms/arm_atsam/platform.c
diff --git a/tmk_core/arm_atsam.mk b/platforms/arm_atsam/platform.mk
index b49bf764d..b49bf764d 100644
--- a/tmk_core/arm_atsam.mk
+++ b/platforms/arm_atsam/platform.mk
diff --git a/tmk_core/common/arm_atsam/platform_deps.h b/platforms/arm_atsam/platform_deps.h
index f296d1d53..f296d1d53 100644
--- a/tmk_core/common/arm_atsam/platform_deps.h
+++ b/platforms/arm_atsam/platform_deps.h
diff --git a/tmk_core/common/arm_atsam/suspend.c b/platforms/arm_atsam/suspend.c
index e51426128..e51426128 100644
--- a/tmk_core/common/arm_atsam/suspend.c
+++ b/platforms/arm_atsam/suspend.c
diff --git a/tmk_core/common/arm_atsam/timer.c b/platforms/arm_atsam/timer.c
index b835dd5e7..b835dd5e7 100644
--- a/tmk_core/common/arm_atsam/timer.c
+++ b/platforms/arm_atsam/timer.c
diff --git a/tmk_core/common/atomic_util.h b/platforms/atomic_util.h
index 2c95302a1..2c95302a1 100644
--- a/tmk_core/common/atomic_util.h
+++ b/platforms/atomic_util.h
diff --git a/tmk_core/common/avr/_print.h b/platforms/avr/_print.h
index 5c1fdd26d..5c1fdd26d 100644
--- a/tmk_core/common/avr/_print.h
+++ b/platforms/avr/_print.h
diff --git a/tmk_core/common/avr/_timer.h b/platforms/avr/_timer.h
index b81e0f68b..b81e0f68b 100644
--- a/tmk_core/common/avr/_timer.h
+++ b/platforms/avr/_timer.h
diff --git a/tmk_core/common/avr/_wait.h b/platforms/avr/_wait.h
index 683db6ae5..683db6ae5 100644
--- a/tmk_core/common/avr/_wait.h
+++ b/platforms/avr/_wait.h
diff --git a/tmk_core/common/avr/atomic_util.h b/platforms/avr/atomic_util.h
index 7c5d2e7dc..7c5d2e7dc 100644
--- a/tmk_core/common/avr/atomic_util.h
+++ b/platforms/avr/atomic_util.h
diff --git a/tmk_core/common/avr/bootloader.c b/platforms/avr/bootloader.c
index c0272903b..c0272903b 100644
--- a/tmk_core/common/avr/bootloader.c
+++ b/platforms/avr/bootloader.c
diff --git a/tmk_core/common/avr/bootloader_size.c b/platforms/avr/bootloader_size.c
index a029f9321..a029f9321 100644
--- a/tmk_core/common/avr/bootloader_size.c
+++ b/platforms/avr/bootloader_size.c
diff --git a/tmk_core/common/avr/gpio.h b/platforms/avr/gpio.h
index e9be68491..e9be68491 100644
--- a/tmk_core/common/avr/gpio.h
+++ b/platforms/avr/gpio.h
diff --git a/tmk_core/common/avr/pin_defs.h b/platforms/avr/pin_defs.h
index 23d948041..23d948041 100644
--- a/tmk_core/common/avr/pin_defs.h
+++ b/platforms/avr/pin_defs.h
diff --git a/tmk_core/common/avr/platform.c b/platforms/avr/platform.c
index 3e35b4fe4..3e35b4fe4 100644
--- a/tmk_core/common/avr/platform.c
+++ b/platforms/avr/platform.c
diff --git a/tmk_core/avr.mk b/platforms/avr/platform.mk
index c52262273..b45108736 100644
--- a/tmk_core/avr.mk
+++ b/platforms/avr/platform.mk
@@ -163,7 +163,7 @@ ifeq ($(strip $(QMK_BOOTLOADER_TYPE)),)
163else 163else
164 make -C lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/ clean 164 make -C lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/ clean
165 $(QMK_BIN) generate-dfu-header --quiet --keyboard $(KEYBOARD) --output lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/Keyboard.h 165 $(QMK_BIN) generate-dfu-header --quiet --keyboard $(KEYBOARD) --output lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/Keyboard.h
166 $(eval MAX_SIZE=$(shell n=`$(CC) -E -mmcu=$(MCU) -D__ASSEMBLER__ $(CFLAGS) $(OPT_DEFS) tmk_core/common/avr/bootloader_size.c 2> /dev/null | sed -ne 's/\r//;/^#/n;/^AVR_SIZE:/,$${s/^AVR_SIZE: //;p;}'` && echo $$(($$n)) || echo 0)) 166 $(eval MAX_SIZE=$(shell n=`$(CC) -E -mmcu=$(MCU) -D__ASSEMBLER__ $(CFLAGS) $(OPT_DEFS) platforms/avr/bootloader_size.c 2> /dev/null | sed -ne 's/\r//;/^#/n;/^AVR_SIZE:/,$${s/^AVR_SIZE: //;p;}'` && echo $$(($$n)) || echo 0))
167 $(eval PROGRAM_SIZE_KB=$(shell n=`expr $(MAX_SIZE) / 1024` && echo $$(($$n)) || echo 0)) 167 $(eval PROGRAM_SIZE_KB=$(shell n=`expr $(MAX_SIZE) / 1024` && echo $$(($$n)) || echo 0))
168 $(eval BOOT_SECTION_SIZE_KB=$(shell n=`expr $(BOOTLOADER_SIZE) / 1024` && echo $$(($$n)) || echo 0)) 168 $(eval BOOT_SECTION_SIZE_KB=$(shell n=`expr $(BOOTLOADER_SIZE) / 1024` && echo $$(($$n)) || echo 0))
169 $(eval FLASH_SIZE_KB=$(shell n=`expr $(PROGRAM_SIZE_KB) + $(BOOT_SECTION_SIZE_KB)` && echo $$(($$n)) || echo 0)) 169 $(eval FLASH_SIZE_KB=$(shell n=`expr $(PROGRAM_SIZE_KB) + $(BOOT_SECTION_SIZE_KB)` && echo $$(($$n)) || echo 0))
diff --git a/tmk_core/common/avr/platform_deps.h b/platforms/avr/platform_deps.h
index 45d9dcebf..45d9dcebf 100644
--- a/tmk_core/common/avr/platform_deps.h
+++ b/platforms/avr/platform_deps.h
diff --git a/tmk_core/common/avr/printf.c b/platforms/avr/printf.c
index 9ad7a3869..9ad7a3869 100644
--- a/tmk_core/common/avr/printf.c
+++ b/platforms/avr/printf.c
diff --git a/tmk_core/common/avr/printf.mk b/platforms/avr/printf.mk
index 060ad88c5..060ad88c5 100644
--- a/tmk_core/common/avr/printf.mk
+++ b/platforms/avr/printf.mk
diff --git a/tmk_core/common/avr/sleep_led.c b/platforms/avr/sleep_led.c
index 9a3b52abe..9a3b52abe 100644
--- a/tmk_core/common/avr/sleep_led.c
+++ b/platforms/avr/sleep_led.c
diff --git a/tmk_core/common/avr/suspend.c b/platforms/avr/suspend.c
index b614746e6..b614746e6 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/platforms/avr/suspend.c
diff --git a/tmk_core/common/avr/timer.c b/platforms/avr/timer.c
index c2e6c6e08..c2e6c6e08 100644
--- a/tmk_core/common/avr/timer.c
+++ b/platforms/avr/timer.c
diff --git a/tmk_core/common/avr/timer_avr.h b/platforms/avr/timer_avr.h
index c1b726bd0..c1b726bd0 100644
--- a/tmk_core/common/avr/timer_avr.h
+++ b/platforms/avr/timer_avr.h
diff --git a/tmk_core/common/avr/xprintf.S b/platforms/avr/xprintf.S
index c5a414c35..c5a414c35 100644
--- a/tmk_core/common/avr/xprintf.S
+++ b/platforms/avr/xprintf.S
diff --git a/tmk_core/common/avr/xprintf.h b/platforms/avr/xprintf.h
index 80834f171..80834f171 100644
--- a/tmk_core/common/avr/xprintf.h
+++ b/platforms/avr/xprintf.h
diff --git a/tmk_core/common/bootloader.h b/platforms/bootloader.h
index 25ebd9528..25ebd9528 100644
--- a/tmk_core/common/bootloader.h
+++ b/platforms/bootloader.h
diff --git a/tmk_core/common/chibios/_timer.h b/platforms/chibios/_timer.h
index 77402b612..77402b612 100644
--- a/tmk_core/common/chibios/_timer.h
+++ b/platforms/chibios/_timer.h
diff --git a/tmk_core/common/chibios/_wait.c b/platforms/chibios/_wait.c
index 1fbea2dd5..1fbea2dd5 100644
--- a/tmk_core/common/chibios/_wait.c
+++ b/platforms/chibios/_wait.c
diff --git a/tmk_core/common/chibios/_wait.h b/platforms/chibios/_wait.h
index 2f36c64a2..2f36c64a2 100644
--- a/tmk_core/common/chibios/_wait.h
+++ b/platforms/chibios/_wait.h
diff --git a/tmk_core/common/chibios/atomic_util.h b/platforms/chibios/atomic_util.h
index 897504515..897504515 100644
--- a/tmk_core/common/chibios/atomic_util.h
+++ b/platforms/chibios/atomic_util.h
diff --git a/tmk_core/common/chibios/bootloader.c b/platforms/chibios/bootloader.c
index 5cadadeee..5cadadeee 100644
--- a/tmk_core/common/chibios/bootloader.c
+++ b/platforms/chibios/bootloader.c
diff --git a/tmk_core/common/chibios/chibios_config.h b/platforms/chibios/chibios_config.h
index ad2f808a9..ad2f808a9 100644
--- a/tmk_core/common/chibios/chibios_config.h
+++ b/platforms/chibios/chibios_config.h
diff --git a/tmk_core/common/chibios/eeprom_stm32.c b/platforms/chibios/eeprom_stm32.c
index acc6a4851..acc6a4851 100644
--- a/tmk_core/common/chibios/eeprom_stm32.c
+++ b/platforms/chibios/eeprom_stm32.c
diff --git a/tmk_core/common/chibios/eeprom_stm32.h b/platforms/chibios/eeprom_stm32.h
index 8fcfb556b..8fcfb556b 100644
--- a/tmk_core/common/chibios/eeprom_stm32.h
+++ b/platforms/chibios/eeprom_stm32.h
diff --git a/tmk_core/common/chibios/eeprom_stm32_defs.h b/platforms/chibios/eeprom_stm32_defs.h
index 66904f247..66904f247 100644
--- a/tmk_core/common/chibios/eeprom_stm32_defs.h
+++ b/platforms/chibios/eeprom_stm32_defs.h
diff --git a/tmk_core/common/chibios/eeprom_teensy.c b/platforms/chibios/eeprom_teensy.c
index 97da6f9e1..97da6f9e1 100644
--- a/tmk_core/common/chibios/eeprom_teensy.c
+++ b/platforms/chibios/eeprom_teensy.c
diff --git a/tmk_core/common/chibios/flash_stm32.c b/platforms/chibios/flash_stm32.c
index 72c41b8b7..72c41b8b7 100644
--- a/tmk_core/common/chibios/flash_stm32.c
+++ b/platforms/chibios/flash_stm32.c
diff --git a/tmk_core/common/chibios/flash_stm32.h b/platforms/chibios/flash_stm32.h
index 6c66642ec..6c66642ec 100644
--- a/tmk_core/common/chibios/flash_stm32.h
+++ b/platforms/chibios/flash_stm32.h
diff --git a/tmk_core/common/chibios/gd32v_compatibility.h b/platforms/chibios/gd32v_compatibility.h
index f4dcfd8c5..f4dcfd8c5 100644
--- a/tmk_core/common/chibios/gd32v_compatibility.h
+++ b/platforms/chibios/gd32v_compatibility.h
diff --git a/tmk_core/common/chibios/gpio.h b/platforms/chibios/gpio.h
index 4d057f1ca..4d057f1ca 100644
--- a/tmk_core/common/chibios/gpio.h
+++ b/platforms/chibios/gpio.h
diff --git a/tmk_core/common/chibios/pin_defs.h b/platforms/chibios/pin_defs.h
index c03f8de0c..c03f8de0c 100644
--- a/tmk_core/common/chibios/pin_defs.h
+++ b/platforms/chibios/pin_defs.h
diff --git a/tmk_core/common/chibios/platform.c b/platforms/chibios/platform.c
index d4a229f27..d4a229f27 100644
--- a/tmk_core/common/chibios/platform.c
+++ b/platforms/chibios/platform.c
diff --git a/tmk_core/chibios.mk b/platforms/chibios/platform.mk
index 6b298732c..6b298732c 100644
--- a/tmk_core/chibios.mk
+++ b/platforms/chibios/platform.mk
diff --git a/tmk_core/common/chibios/platform_deps.h b/platforms/chibios/platform_deps.h
index 8243dcec5..8243dcec5 100644
--- a/tmk_core/common/chibios/platform_deps.h
+++ b/platforms/chibios/platform_deps.h
diff --git a/tmk_core/common/chibios/sleep_led.c b/platforms/chibios/sleep_led.c
index 477056a45..477056a45 100644
--- a/tmk_core/common/chibios/sleep_led.c
+++ b/platforms/chibios/sleep_led.c
diff --git a/tmk_core/common/chibios/suspend.c b/platforms/chibios/suspend.c
index 9310a9992..9310a9992 100644
--- a/tmk_core/common/chibios/suspend.c
+++ b/platforms/chibios/suspend.c
diff --git a/tmk_core/common/chibios/syscall-fallbacks.c b/platforms/chibios/syscall-fallbacks.c
index 4569879c7..4569879c7 100644
--- a/tmk_core/common/chibios/syscall-fallbacks.c
+++ b/platforms/chibios/syscall-fallbacks.c
diff --git a/tmk_core/common/chibios/timer.c b/platforms/chibios/timer.c
index 9f664e1f7..9f664e1f7 100644
--- a/tmk_core/common/chibios/timer.c
+++ b/platforms/chibios/timer.c
diff --git a/tmk_core/common/chibios/wait.c b/platforms/chibios/wait.c
index 56fd6ffce..56fd6ffce 100644
--- a/tmk_core/common/chibios/wait.c
+++ b/platforms/chibios/wait.c
diff --git a/platforms/common.mk b/platforms/common.mk
new file mode 100644
index 000000000..f7a0fc702
--- /dev/null
+++ b/platforms/common.mk
@@ -0,0 +1,12 @@
1PLATFORM_COMMON_DIR = $(PLATFORM_PATH)/$(PLATFORM_KEY)
2
3TMK_COMMON_SRC += \
4 $(PLATFORM_COMMON_DIR)/platform.c \
5 $(PLATFORM_COMMON_DIR)/suspend.c \
6 $(PLATFORM_COMMON_DIR)/timer.c \
7 $(PLATFORM_COMMON_DIR)/bootloader.c \
8
9# Search Path
10VPATH += $(PLATFORM_PATH)
11VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)
12VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)
diff --git a/tmk_core/common/eeprom.h b/platforms/eeprom.h
index f5b3f0ad5..f5b3f0ad5 100644
--- a/tmk_core/common/eeprom.h
+++ b/platforms/eeprom.h
diff --git a/tmk_core/common/gpio.h b/platforms/gpio.h
index b47f6f8e4..b47f6f8e4 100644
--- a/tmk_core/common/gpio.h
+++ b/platforms/gpio.h
diff --git a/tmk_core/common/pin_defs.h b/platforms/pin_defs.h
index ea730138f..ea730138f 100644
--- a/tmk_core/common/pin_defs.h
+++ b/platforms/pin_defs.h
diff --git a/tmk_core/common/progmem.h b/platforms/progmem.h
index a70d8e299..a70d8e299 100644
--- a/tmk_core/common/progmem.h
+++ b/platforms/progmem.h
diff --git a/tmk_core/common/sleep_led.h b/platforms/sleep_led.h
index 38f80a660..38f80a660 100644
--- a/tmk_core/common/sleep_led.h
+++ b/platforms/sleep_led.h
diff --git a/tmk_core/common/suspend.h b/platforms/suspend.h
index 081735f90..081735f90 100644
--- a/tmk_core/common/suspend.h
+++ b/platforms/suspend.h
diff --git a/tmk_core/common/test/_wait.h b/platforms/test/_wait.h
index 4e22f593b..4e22f593b 100644
--- a/tmk_core/common/test/_wait.h
+++ b/platforms/test/_wait.h
diff --git a/tmk_core/common/test/bootloader.c b/platforms/test/bootloader.c
index 5155d9ff0..5155d9ff0 100644
--- a/tmk_core/common/test/bootloader.c
+++ b/platforms/test/bootloader.c
diff --git a/tmk_core/common/test/eeprom.c b/platforms/test/eeprom.c
index 5c8e69dae..5c8e69dae 100644
--- a/tmk_core/common/test/eeprom.c
+++ b/platforms/test/eeprom.c
diff --git a/tmk_core/common/test/eeprom_stm32_tests.cpp b/platforms/test/eeprom_stm32_tests.cpp
index 5bc8d8790..5bc8d8790 100644
--- a/tmk_core/common/test/eeprom_stm32_tests.cpp
+++ b/platforms/test/eeprom_stm32_tests.cpp
diff --git a/tmk_core/common/test/flash_stm32_mock.c b/platforms/test/flash_stm32_mock.c
index 222a004bc..222a004bc 100644
--- a/tmk_core/common/test/flash_stm32_mock.c
+++ b/platforms/test/flash_stm32_mock.c
diff --git a/tmk_core/common/test/hal.h b/platforms/test/hal.h
index 2d268ad54..2d268ad54 100644
--- a/tmk_core/common/test/hal.h
+++ b/platforms/test/hal.h
diff --git a/tmk_core/common/test/platform.c b/platforms/test/platform.c
index 8ddceeda8..8ddceeda8 100644
--- a/tmk_core/common/test/platform.c
+++ b/platforms/test/platform.c
diff --git a/tmk_core/common/test/platform.h b/platforms/test/platform.h
index f296d1d53..f296d1d53 100644
--- a/tmk_core/common/test/platform.h
+++ b/platforms/test/platform.h
diff --git a/tmk_core/native.mk b/platforms/test/platform.mk
index eb2424ec5..eb2424ec5 100644
--- a/tmk_core/native.mk
+++ b/platforms/test/platform.mk
diff --git a/tmk_core/common/test/platform_deps.h b/platforms/test/platform_deps.h
index f296d1d53..f296d1d53 100644
--- a/tmk_core/common/test/platform_deps.h
+++ b/platforms/test/platform_deps.h
diff --git a/tmk_core/common/test/rules.mk b/platforms/test/rules.mk
index 73d2302da..66b853d8e 100644
--- a/tmk_core/common/test/rules.mk
+++ b/platforms/test/rules.mk
@@ -11,14 +11,14 @@ eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \
11 -DFEE_PAGE_COUNT=16 11 -DFEE_PAGE_COUNT=16
12 12
13eeprom_stm32_INC := \ 13eeprom_stm32_INC := \
14 $(TMK_PATH)/common/chibios/ 14 $(PLATFORM_PATH)/chibios/
15eeprom_stm32_tiny_INC := $(eeprom_stm32_INC) 15eeprom_stm32_tiny_INC := $(eeprom_stm32_INC)
16eeprom_stm32_large_INC := $(eeprom_stm32_INC) 16eeprom_stm32_large_INC := $(eeprom_stm32_INC)
17 17
18eeprom_stm32_SRC := \ 18eeprom_stm32_SRC := \
19 $(TOP_DIR)/drivers/eeprom/eeprom_driver.c \ 19 $(TOP_DIR)/drivers/eeprom/eeprom_driver.c \
20 $(TMK_PATH)/common/test/eeprom_stm32_tests.cpp \ 20 $(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_stm32_tests.cpp \
21 $(TMK_PATH)/common/test/flash_stm32_mock.c \ 21 $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \
22 $(TMK_PATH)/common/chibios/eeprom_stm32.c 22 $(PLATFORM_PATH)/chibios/eeprom_stm32.c
23eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC) 23eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC)
24eeprom_stm32_large_SRC := $(eeprom_stm32_SRC) 24eeprom_stm32_large_SRC := $(eeprom_stm32_SRC)
diff --git a/tmk_core/common/test/suspend.c b/platforms/test/suspend.c
index 76b705967..76b705967 100644
--- a/tmk_core/common/test/suspend.c
+++ b/platforms/test/suspend.c
diff --git a/tmk_core/common/test/testlist.mk b/platforms/test/testlist.mk
index 51a9638bb..51a9638bb 100644
--- a/tmk_core/common/test/testlist.mk
+++ b/platforms/test/testlist.mk
diff --git a/tmk_core/common/test/timer.c b/platforms/test/timer.c
index 61c3a0020..61c3a0020 100644
--- a/tmk_core/common/test/timer.c
+++ b/platforms/test/timer.c
diff --git a/tmk_core/common/timer.h b/platforms/timer.h
index 02e39e79e..02e39e79e 100644
--- a/tmk_core/common/timer.h
+++ b/platforms/timer.h
diff --git a/tmk_core/common/wait.h b/platforms/wait.h
index cf7180fb0..cf7180fb0 100644
--- a/tmk_core/common/wait.h
+++ b/platforms/wait.h
diff --git a/quantum/debounce/tests/rules.mk b/quantum/debounce/tests/rules.mk
index 66928d7eb..e908dd6f6 100644
--- a/quantum/debounce/tests/rules.mk
+++ b/quantum/debounce/tests/rules.mk
@@ -16,7 +16,7 @@
16DEBOUNCE_COMMON_DEFS := -DMATRIX_ROWS=4 -DMATRIX_COLS=10 -DDEBOUNCE=5 16DEBOUNCE_COMMON_DEFS := -DMATRIX_ROWS=4 -DMATRIX_COLS=10 -DDEBOUNCE=5
17 17
18DEBOUNCE_COMMON_SRC := $(QUANTUM_PATH)/debounce/tests/debounce_test_common.cpp \ 18DEBOUNCE_COMMON_SRC := $(QUANTUM_PATH)/debounce/tests/debounce_test_common.cpp \
19 $(TMK_PATH)/common/test/timer.c 19 $(PLATFORM_PATH)/$(PLATFORM_KEY)/timer.c
20 20
21debounce_sym_defer_g_DEFS := $(DEBOUNCE_COMMON_DEFS) 21debounce_sym_defer_g_DEFS := $(DEBOUNCE_COMMON_DEFS)
22debounce_sym_defer_g_SRC := $(DEBOUNCE_COMMON_SRC) \ 22debounce_sym_defer_g_SRC := $(DEBOUNCE_COMMON_SRC) \
diff --git a/quantum/dynamic_keymap.c b/quantum/dynamic_keymap.c
index b7a9f2662..f5525576d 100644
--- a/quantum/dynamic_keymap.c
+++ b/quantum/dynamic_keymap.c
@@ -16,7 +16,7 @@
16 16
17#include "config.h" 17#include "config.h"
18#include "keymap.h" // to get keymaps[][][] 18#include "keymap.h" // to get keymaps[][][]
19#include "tmk_core/common/eeprom.h" 19#include "eeprom.h"
20#include "progmem.h" // to read default from flash 20#include "progmem.h" // to read default from flash
21#include "quantum.h" // for send_string() 21#include "quantum.h" // for send_string()
22#include "dynamic_keymap.h" 22#include "dynamic_keymap.h"
diff --git a/quantum/sequencer/tests/rules.mk b/quantum/sequencer/tests/rules.mk
index 87a204669..a3bbd8051 100644
--- a/quantum/sequencer/tests/rules.mk
+++ b/quantum/sequencer/tests/rules.mk
@@ -8,4 +8,4 @@ sequencer_SRC := \
8 $(QUANTUM_PATH)/sequencer/tests/midi_mock.c \ 8 $(QUANTUM_PATH)/sequencer/tests/midi_mock.c \
9 $(QUANTUM_PATH)/sequencer/tests/sequencer_tests.cpp \ 9 $(QUANTUM_PATH)/sequencer/tests/sequencer_tests.cpp \
10 $(QUANTUM_PATH)/sequencer/sequencer.c \ 10 $(QUANTUM_PATH)/sequencer/sequencer.c \
11 $(TMK_PATH)/common/test/timer.c 11 $(PLATFORM_PATH)/$(PLATFORM_KEY)/timer.c
diff --git a/quantum/via.c b/quantum/via.c
index 1b2dbcf08..7c8aa753e 100644
--- a/quantum/via.c
+++ b/quantum/via.c
@@ -44,7 +44,7 @@
44 44
45#include "raw_hid.h" 45#include "raw_hid.h"
46#include "dynamic_keymap.h" 46#include "dynamic_keymap.h"
47#include "tmk_core/common/eeprom.h" 47#include "eeprom.h"
48#include "version.h" // for QMK_BUILDDATE used in EEPROM magic 48#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
49#include "via_ensure_keycode.h" 49#include "via_ensure_keycode.h"
50 50
diff --git a/testlist.mk b/testlist.mk
index 364fb339c..faff4d201 100644
--- a/testlist.mk
+++ b/testlist.mk
@@ -1,9 +1,9 @@
1TEST_LIST = $(notdir $(patsubst %/rules.mk,%,$(wildcard $(ROOT_DIR)/tests/*/rules.mk))) 1TEST_LIST = $(notdir $(patsubst %/rules.mk,%,$(wildcard $(ROOT_DIR)/tests/*/rules.mk)))
2FULL_TESTS := $(TEST_LIST) 2FULL_TESTS := $(TEST_LIST)
3 3
4include $(ROOT_DIR)/quantum/debounce/tests/testlist.mk 4include $(QUANTUM_PATH)/debounce/tests/testlist.mk
5include $(ROOT_DIR)/quantum/sequencer/tests/testlist.mk 5include $(QUANTUM_PATH)/sequencer/tests/testlist.mk
6include $(ROOT_DIR)/tmk_core/common/test/testlist.mk 6include $(PLATFORM_PATH)/test/testlist.mk
7 7
8define VALIDATE_TEST_LIST 8define VALIDATE_TEST_LIST
9 ifneq ($1,) 9 ifneq ($1,)
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
deleted file mode 100644
index 555b942c9..000000000
--- a/tmk_core/common.mk
+++ /dev/null
@@ -1,16 +0,0 @@
1COMMON_DIR = common
2PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
3
4TMK_COMMON_SRC += \
5 $(PLATFORM_COMMON_DIR)/platform.c \
6 $(PLATFORM_COMMON_DIR)/suspend.c \
7 $(PLATFORM_COMMON_DIR)/timer.c \
8 $(PLATFORM_COMMON_DIR)/bootloader.c \
9
10# Use platform provided print if it exists
11-include $(TMK_PATH)/$(PLATFORM_COMMON_DIR)/printf.mk
12
13# Search Path
14VPATH += $(TMK_PATH)/$(COMMON_DIR)
15VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)
16VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk
index a8723e6b2..31a6de76f 100644
--- a/tmk_core/protocol.mk
+++ b/tmk_core/protocol.mk
@@ -1,5 +1,3 @@
1PROTOCOL_DIR = protocol
2
3TMK_COMMON_SRC += \ 1TMK_COMMON_SRC += \
4 $(PROTOCOL_DIR)/host.c \ 2 $(PROTOCOL_DIR)/host.c \
5 $(PROTOCOL_DIR)/report.c \ 3 $(PROTOCOL_DIR)/report.c \
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index e657af3f4..6767a8e4a 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -479,7 +479,7 @@ ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
479SIZE_MARGIN = 1024 479SIZE_MARGIN = 1024
480 480
481check-size: 481check-size:
482 $(eval MAX_SIZE=$(shell n=`$(CC) -E -mmcu=$(MCU) -D__ASSEMBLER__ $(CFLAGS) $(OPT_DEFS) tmk_core/common/avr/bootloader_size.c 2> /dev/null | sed -ne 's/\r//;/^#/n;/^AVR_SIZE:/,$${s/^AVR_SIZE: //;p;}'` && echo $$(($$n)) || echo 0)) 482 $(eval MAX_SIZE=$(shell n=`$(CC) -E -mmcu=$(MCU) -D__ASSEMBLER__ $(CFLAGS) $(OPT_DEFS) platforms/avr/bootloader_size.c 2> /dev/null | sed -ne 's/\r//;/^#/n;/^AVR_SIZE:/,$${s/^AVR_SIZE: //;p;}'` && echo $$(($$n)) || echo 0))
483 $(eval CURRENT_SIZE=$(shell if [ -f $(BUILD_DIR)/$(TARGET).hex ]; then $(SIZE) --target=$(FORMAT) $(BUILD_DIR)/$(TARGET).hex | $(AWK) 'NR==2 {print $$4}'; else printf 0; fi)) 483 $(eval CURRENT_SIZE=$(shell if [ -f $(BUILD_DIR)/$(TARGET).hex ]; then $(SIZE) --target=$(FORMAT) $(BUILD_DIR)/$(TARGET).hex | $(AWK) 'NR==2 {print $$4}'; else printf 0; fi))
484 $(eval FREE_SIZE=$(shell expr $(MAX_SIZE) - $(CURRENT_SIZE))) 484 $(eval FREE_SIZE=$(shell expr $(MAX_SIZE) - $(CURRENT_SIZE)))
485 $(eval OVER_SIZE=$(shell expr $(CURRENT_SIZE) - $(MAX_SIZE))) 485 $(eval OVER_SIZE=$(shell expr $(CURRENT_SIZE) - $(MAX_SIZE)))