Browse Source

Move tmk_core/common/<plat> (#13918)

master
Joel Challis 7 months ago
committed by GitHub
parent
commit
2728603fe6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      build_keyboard.mk
  2. 6
      build_test.mk
  3. 4
      common_features.mk
  4. 2
      docs/feature_layers.md
  5. 2
      docs/fr-fr/faq_keymap.md
  6. 2
      docs/internals_gpio_control.md
  7. 2
      docs/ja/faq_keymap.md
  8. 2
      docs/ja/feature_layers.md
  9. 2
      docs/ja/pr_checklist.md
  10. 2
      docs/pr_checklist.md
  11. 2
      docs/zh-cn/faq_keymap.md
  12. 2
      keyboards/ai03/orbit/split_util.c
  13. 2
      keyboards/cannonkeys/satisfaction75/satisfaction75.c
  14. 2
      keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c
  15. 2
      keyboards/mxss/mxss.c
  16. 2
      keyboards/mxss/mxss_frontled.c
  17. 2
      keyboards/wilba_tech/wt_main.c
  18. 2
      keyboards/wilba_tech/wt_mono_backlight.c
  19. 2
      keyboards/wilba_tech/wt_rgb_backlight.c
  20. 3
      paths.mk
  21. 0
      platforms/arm_atsam/_timer.h
  22. 0
      platforms/arm_atsam/_wait.h
  23. 0
      platforms/arm_atsam/atomic_util.h
  24. 0
      platforms/arm_atsam/bootloader.c
  25. 0
      platforms/arm_atsam/eeprom.c
  26. 0
      platforms/arm_atsam/gpio.h
  27. 0
      platforms/arm_atsam/pin_defs.h
  28. 0
      platforms/arm_atsam/platform.c
  29. 0
      platforms/arm_atsam/platform.mk
  30. 0
      platforms/arm_atsam/platform_deps.h
  31. 0
      platforms/arm_atsam/suspend.c
  32. 0
      platforms/arm_atsam/timer.c
  33. 0
      platforms/atomic_util.h
  34. 0
      platforms/avr/_print.h
  35. 0
      platforms/avr/_timer.h
  36. 0
      platforms/avr/_wait.h
  37. 0
      platforms/avr/atomic_util.h
  38. 0
      platforms/avr/bootloader.c
  39. 0
      platforms/avr/bootloader_size.c
  40. 0
      platforms/avr/gpio.h
  41. 0
      platforms/avr/pin_defs.h
  42. 0
      platforms/avr/platform.c
  43. 2
      platforms/avr/platform.mk
  44. 0
      platforms/avr/platform_deps.h
  45. 0
      platforms/avr/printf.c
  46. 0
      platforms/avr/printf.mk
  47. 0
      platforms/avr/sleep_led.c
  48. 0
      platforms/avr/suspend.c
  49. 0
      platforms/avr/timer.c
  50. 0
      platforms/avr/timer_avr.h
  51. 0
      platforms/avr/xprintf.S
  52. 0
      platforms/avr/xprintf.h
  53. 0
      platforms/bootloader.h
  54. 0
      platforms/chibios/_timer.h
  55. 0
      platforms/chibios/_wait.c
  56. 0
      platforms/chibios/_wait.h
  57. 0
      platforms/chibios/atomic_util.h
  58. 0
      platforms/chibios/bootloader.c
  59. 0
      platforms/chibios/chibios_config.h
  60. 0
      platforms/chibios/eeprom_stm32.c
  61. 0
      platforms/chibios/eeprom_stm32.h
  62. 0
      platforms/chibios/eeprom_stm32_defs.h
  63. 0
      platforms/chibios/eeprom_teensy.c
  64. 0
      platforms/chibios/flash_stm32.c
  65. 0
      platforms/chibios/flash_stm32.h
  66. 0
      platforms/chibios/gd32v_compatibility.h
  67. 0
      platforms/chibios/gpio.h
  68. 0
      platforms/chibios/pin_defs.h
  69. 0
      platforms/chibios/platform.c
  70. 0
      platforms/chibios/platform.mk
  71. 0
      platforms/chibios/platform_deps.h
  72. 0
      platforms/chibios/sleep_led.c
  73. 0
      platforms/chibios/suspend.c
  74. 0
      platforms/chibios/syscall-fallbacks.c
  75. 0
      platforms/chibios/timer.c
  76. 0
      platforms/chibios/wait.c
  77. 12
      platforms/common.mk
  78. 0
      platforms/eeprom.h
  79. 0
      platforms/gpio.h
  80. 0
      platforms/pin_defs.h
  81. 0
      platforms/progmem.h
  82. 0
      platforms/sleep_led.h
  83. 0
      platforms/suspend.h
  84. 0
      platforms/test/_wait.h
  85. 0
      platforms/test/bootloader.c
  86. 0
      platforms/test/eeprom.c
  87. 0
      platforms/test/eeprom_stm32_tests.cpp
  88. 0
      platforms/test/flash_stm32_mock.c
  89. 0
      platforms/test/hal.h
  90. 0
      platforms/test/platform.c
  91. 0
      platforms/test/platform.h
  92. 0
      platforms/test/platform.mk
  93. 0
      platforms/test/platform_deps.h
  94. 8
      platforms/test/rules.mk
  95. 0
      platforms/test/suspend.c
  96. 0
      platforms/test/testlist.mk
  97. 0
      platforms/test/timer.c
  98. 0
      platforms/timer.h
  99. 0
      platforms/wait.h
  100. 2
      quantum/debounce/tests/rules.mk

7
build_keyboard.mk

@ -388,7 +388,7 @@ VPATH += $(COMMON_VPATH)
include common_features.mk
include $(BUILDDEFS_PATH)/generic_features.mk
include $(TMK_PATH)/protocol.mk
include $(TMK_PATH)/common.mk
include $(PLATFORM_PATH)/common.mk
include $(BUILDDEFS_PATH)/bootloader.mk
SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
@ -404,13 +404,14 @@ ifneq ($(REQUIRE_PLATFORM_KEY),)
endif
endif
include $(TMK_PATH)/$(PLATFORM_KEY).mk
include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk
-include $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash.mk
ifneq ($(strip $(PROTOCOL)),)
include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk
else
include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk
endif
-include $(TOP_DIR)/platforms/$(PLATFORM_KEY)/flash.mk
# TODO: remove this bodge?
PROJECT_DEFS := $(OPT_DEFS)

6
build_test.mk

@ -54,11 +54,11 @@ endif
include common_features.mk
include $(BUILDDEFS_PATH)/generic_features.mk
include $(TMK_PATH)/common.mk
include $(PLATFORM_PATH)/common.mk
include $(TMK_PATH)/protocol.mk
include $(QUANTUM_PATH)/debounce/tests/rules.mk
include $(QUANTUM_PATH)/sequencer/tests/rules.mk
include $(TMK_PATH)/common/test/rules.mk
include $(PLATFORM_PATH)/test/rules.mk
ifneq ($(filter $(FULL_TESTS),$(TEST)),)
include build_full_test.mk
endif
@ -73,7 +73,7 @@ $(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC)
$(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS)
$(TEST_OBJ)/$(TEST)_CONFIG := $($(TEST)_CONFIG)
include $(TMK_PATH)/native.mk
include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk
include $(TMK_PATH)/rules.mk

4
common_features.mk

@ -33,8 +33,10 @@ QUANTUM_SRC += \
VPATH += $(QUANTUM_DIR)/logging
# Fall back to lib/printf if there is no platform provided print
ifeq ("$(wildcard $(TMK_PATH)/common/$(PLATFORM_KEY)/printf.mk)","")
ifeq ("$(wildcard $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk)","")
include $(QUANTUM_PATH)/logging/print.mk
else
include $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk
endif
ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes)

2
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
Layers 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.
Sometimes, 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).
Sometimes, 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).
## Functions :id=functions

2
docs/fr-fr/faq_keymap.md

@ -6,7 +6,7 @@ Cette page couvre les questions souvent posées à propos des keymaps. Si vous n
Regardez [Keycodes](keycodes.md) pour une liste des keycodes disponibles. Certains keycodes spécifiques ont des documentations plus complètes de disponible.
Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h).
Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h).
## Quels sont les keycodes par défaut ?

2
docs/internals_gpio_control.md

@ -4,7 +4,7 @@ QMK has a GPIO control abstraction layer which is microcontroller agnostic. This
## Functions :id=functions
The following functions provide basic control of GPIOs and are found in `tmk_core/common/<platform>/gpio.h`.
The following functions provide basic control of GPIOs and are found in `platforms/<platform>/gpio.h`.
|Function |Description | Old AVR Examples | Old ChibiOS/ARM Examples |
|------------------------|--------------------------------------------------|-------------------------------------------------|-------------------------------------------------|

2
docs/ja/faq_keymap.md

@ -10,7 +10,7 @@
## どのキーコードを使えますか?
あなたが利用可能なキーコードのインデックスについては、[キーコード](ja/keycodes.md)を見てください。より広範なドキュメントがある場合は、そこからリンクしてあります。
キーコードは実際には [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h) で定義されています。
キーコードは実際には [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h) で定義されています。
## デフォルトのキーコードとは何か?

2
docs/ja/feature_layers.md

@ -50,7 +50,7 @@ QMK を使い始めたばかりの場合は、全てを単純にしたいでし
レイヤーは番号順に上に積み重なっています。キーの押下の動作を決定する時に、QMK は上から順にレイヤーを走査し、`KC_TRNS` に設定されていない最初のアクティブなレイヤーに到達すると停止します。結果として、現在のレイヤーよりも数値的に低いレイヤーをアクティブにし、現在のレイヤー(あるいはアクティブでターゲットレイヤーよりも高い別のレイヤー)に `KC_TRNS` 以外のものがある場合、それが送信されるキーであり、アクティブ化したばかりのレイヤー上のキーではありません。これが、ほとんどの人の "なぜレイヤーが切り替わらないのか" 問題の原因です。
場合によっては、マクロ内あるいはタップダンスルーチンの一部としてレイヤーを切り替えほうが良いかもしれません。`layer_on` はレイヤーをアクティブにし、`layer_off` はそれを非アクティブにします。もっと多くのレイヤーに関する関数は、[action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h) で見つけることができます。
場合によっては、マクロ内あるいはタップダンスルーチンの一部としてレイヤーを切り替えほうが良いかもしれません。`layer_on` はレイヤーをアクティブにし、`layer_off` はそれを非アクティブにします。もっと多くのレイヤーに関する関数は、[action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/action_layer.h) で見つけることができます。
## 関数 :id=functions

2
docs/ja/pr_checklist.md

@ -27,7 +27,7 @@
- 「旧式の」 GPIO/I2C/SPI 関数を使用しない - 正当な理由がない限り、QMK の抽象化を使用しなければなりません (怠惰は正当な理由にはなりません)
- タイミングの抽象化にも従う必要があります:
- `_delay_ms()` のかわりに `wait_ms()` を。(`#include <util/delay.h>` も消します)
- `timer_read()``timer_read32()` など。 -- タイミング API は [timer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/timer.h) を参照してください
- `timer_read()``timer_read32()` など。 -- タイミング API は [timer.h](https://github.com/qmk/qmk_firmware/blob/master/platforms/timer.h) を参照してください
- 新しい抽象化が有用だと思う場合は、次のことをお勧めします:
- 機能が完成するまで自分のキーボードでプロトタイプを作成する
- Discord の QMK コラボレータと話し合う

2
docs/pr_checklist.md

@ -24,7 +24,7 @@ If there are any inconsistencies with these recommendations, you're best off [cr
- 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)
- timing abstractions should be followed too:
- `wait_ms()` instead of `_delay_ms()` (remove `#include <util/delay.h>` too)
- `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
- `timer_read()` and `timer_read32()` etc. -- see [timer.h](https://github.com/qmk/qmk_firmware/blob/master/platforms/timer.h) for the timing APIs
- if you think a new abstraction is useful, you're encouraged to:
- prototype it in your own keyboard until it's feature-complete
- discuss it with QMK Collaborators on Discord

2
docs/zh-cn/faq_keymap.md

@ -5,7 +5,7 @@
## 我能用什么键码?
看[键码](keycodes.md)你可以找到你能用的键码索引。可以的话这些链接可以连接到更广泛的文档。
键码实际上定义在[common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h).
键码实际上定义在[common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/keycode.h).
## 默认的键码什么样?

2
keyboards/ai03/orbit/split_util.c

@ -8,7 +8,7 @@
#include "quantum.h"
#ifdef EE_HANDS
# include "tmk_core/common/eeprom.h"
# include "eeprom.h"
# include "eeconfig.h"
#endif

2
keyboards/cannonkeys/satisfaction75/satisfaction75.c

@ -9,7 +9,7 @@
#include "raw_hid.h"
#include "dynamic_keymap.h"
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
/* Artificial delay added to get media keys to work in the encoder*/

2
keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c

@ -1,5 +1,5 @@
#include "satisfaction75.h"
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
void pre_encoder_mode_change(){
if(encoder_mode == ENC_MODE_CLOCK_SET){

2
keyboards/mxss/mxss.c

@ -17,7 +17,7 @@
*/
#include QMK_KEYBOARD_H
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "action_layer.h"
#include "rgblight.h"
#include "via.h"

2
keyboards/mxss/mxss_frontled.c

@ -17,7 +17,7 @@
*/
#include "mxss_frontled.h"
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "rgblight.h"
#include "via.h"
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic

2
keyboards/wilba_tech/wt_main.c

@ -27,7 +27,7 @@
#include "via.h"
#ifndef VIA_ENABLE
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
#endif

2
keyboards/wilba_tech/wt_mono_backlight.c

@ -24,7 +24,7 @@
#include "progmem.h"
#include "quantum/color.h"
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "via.h" // uses EEPROM address, lighting value IDs
#define MONO_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR)

2
keyboards/wilba_tech/wt_rgb_backlight.c

@ -68,7 +68,7 @@ LED_TYPE g_ws2812_leds[WS2812_LED_TOTAL];
#include "progmem.h"
#include "quantum/color.h"
#include "tmk_core/common/eeprom.h"
#include "eeprom.h"
#include "via.h" // uses EEPROM address, lighting value IDs
#define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR)

3
paths.mk

@ -13,6 +13,9 @@ DRIVER_PATH = $(DRIVER_DIR)
PLATFORM_DIR = platforms
PLATFORM_PATH = $(PLATFORM_DIR)
PROTOCOL_DIR = protocol
PROTOCOL_PATH = $(TMK_DIR)/$(PROTOCOL_DIR)
BUILDDEFS_DIR = builddefs
BUILDDEFS_PATH = $(BUILDDEFS_DIR)

0
tmk_core/common/arm_atsam/_timer.h → platforms/arm_atsam/_timer.h

0
tmk_core/common/arm_atsam/_wait.h → platforms/arm_atsam/_wait.h

0
tmk_core/common/arm_atsam/atomic_util.h → platforms/arm_atsam/atomic_util.h

0
tmk_core/common/arm_atsam/bootloader.c → platforms/arm_atsam/bootloader.c

0
tmk_core/common/arm_atsam/eeprom.c → platforms/arm_atsam/eeprom.c

0
tmk_core/common/arm_atsam/gpio.h → platforms/arm_atsam/gpio.h

0
tmk_core/common/arm_atsam/pin_defs.h → platforms/arm_atsam/pin_defs.h

0
tmk_core/common/arm_atsam/platform.c → platforms/arm_atsam/platform.c

0
tmk_core/arm_atsam.mk → platforms/arm_atsam/platform.mk

0
tmk_core/common/arm_atsam/platform_deps.h → platforms/arm_atsam/platform_deps.h

0
tmk_core/common/arm_atsam/suspend.c → platforms/arm_atsam/suspend.c

0
tmk_core/common/arm_atsam/timer.c → platforms/arm_atsam/timer.c

0
tmk_core/common/atomic_util.h → platforms/atomic_util.h

0
tmk_core/common/avr/_print.h → platforms/avr/_print.h

0
tmk_core/common/avr/_timer.h → platforms/avr/_timer.h

0
tmk_core/common/avr/_wait.h → platforms/avr/_wait.h

0
tmk_core/common/avr/atomic_util.h → platforms/avr/atomic_util.h

0
tmk_core/common/avr/bootloader.c → platforms/avr/bootloader.c

0
tmk_core/common/avr/bootloader_size.c → platforms/avr/bootloader_size.c

0
tmk_core/common/avr/gpio.h → platforms/avr/gpio.h

0
tmk_core/common/avr/pin_defs.h → platforms/avr/pin_defs.h

0
tmk_core/common/avr/platform.c → platforms/avr/platform.c

2
tmk_core/avr.mk → platforms/avr/platform.mk

@ -163,7 +163,7 @@ ifeq ($(strip $(QMK_BOOTLOADER_TYPE)),)
else
make -C lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/ clean
$(QMK_BIN) generate-dfu-header --quiet --keyboard $(KEYBOARD) --output lib/lufa/Bootloaders/$(QMK_BOOTLOADER_TYPE)/Keyboard.h
$(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))
$(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))
$(eval PROGRAM_SIZE_KB=$(shell n=`expr $(MAX_SIZE) / 1024` && echo $$(($$n)) || echo 0))
$(eval BOOT_SECTION_SIZE_KB=$(shell n=`expr $(BOOTLOADER_SIZE) / 1024` && echo $$(($$n)) || echo 0))
$(eval FLASH_SIZE_KB=$(shell n=`expr $(PROGRAM_SIZE_KB) + $(BOOT_SECTION_SIZE_KB)` && echo $$(($$n)) || echo 0))

0
tmk_core/common/avr/platform_deps.h → platforms/avr/platform_deps.h

0
tmk_core/common/avr/printf.c → platforms/avr/printf.c

0
tmk_core/common/avr/printf.mk → platforms/avr/printf.mk

0
tmk_core/common/avr/sleep_led.c → platforms/avr/sleep_led.c

0
tmk_core/common/avr/suspend.c → platforms/avr/suspend.c

0
tmk_core/common/avr/timer.c → platforms/avr/timer.c

0
tmk_core/common/avr/timer_avr.h → platforms/avr/timer_avr.h

0
tmk_core/common/avr/xprintf.S → platforms/avr/xprintf.S

0
tmk_core/common/avr/xprintf.h → platforms/avr/xprintf.h

0
tmk_core/common/bootloader.h → platforms/bootloader.h

0
tmk_core/common/chibios/_timer.h → platforms/chibios/_timer.h

0
tmk_core/common/chibios/_wait.c → platforms/chibios/_wait.c

0
tmk_core/common/chibios/_wait.h → platforms/chibios/_wait.h

0
tmk_core/common/chibios/atomic_util.h → platforms/chibios/atomic_util.h

0
tmk_core/common/chibios/bootloader.c → platforms/chibios/bootloader.c

0
tmk_core/common/chibios/chibios_config.h → platforms/chibios/chibios_config.h

0
tmk_core/common/chibios/eeprom_stm32.c → platforms/chibios/eeprom_stm32.c

0
tmk_core/common/chibios/eeprom_stm32.h → platforms/chibios/eeprom_stm32.h

0
tmk_core/common/chibios/eeprom_stm32_defs.h → platforms/chibios/eeprom_stm32_defs.h

0
tmk_core/common/chibios/eeprom_teensy.c → platforms/chibios/eeprom_teensy.c

0
tmk_core/common/chibios/flash_stm32.c → platforms/chibios/flash_stm32.c

0
tmk_core/common/chibios/flash_stm32.h → platforms/chibios/flash_stm32.h

0
tmk_core/common/chibios/gd32v_compatibility.h → platforms/chibios/gd32v_compatibility.h

0
tmk_core/common/chibios/gpio.h → platforms/chibios/gpio.h

0
tmk_core/common/chibios/pin_defs.h → platforms/chibios/pin_defs.h

0
tmk_core/common/chibios/platform.c → platforms/chibios/platform.c

0
tmk_core/chibios.mk → platforms/chibios/platform.mk

0
tmk_core/common/chibios/platform_deps.h → platforms/chibios/platform_deps.h

0
tmk_core/common/chibios/sleep_led.c → platforms/chibios/sleep_led.c

0
tmk_core/common/chibios/suspend.c → platforms/chibios/suspend.c

0
tmk_core/common/chibios/syscall-fallbacks.c → platforms/chibios/syscall-fallbacks.c

0
tmk_core/common/chibios/timer.c → platforms/chibios/timer.c

0
tmk_core/common/chibios/wait.c → platforms/chibios/wait.c

12
platforms/common.mk

@ -0,0 +1,12 @@
PLATFORM_COMMON_DIR = $(PLATFORM_PATH)/$(PLATFORM_KEY)
TMK_COMMON_SRC += \
$(PLATFORM_COMMON_DIR)/platform.c \
$(PLATFORM_COMMON_DIR)/suspend.c \
$(PLATFORM_COMMON_DIR)/timer.c \
$(PLATFORM_COMMON_DIR)/bootloader.c \
# Search Path
VPATH += $(PLATFORM_PATH)
VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)
VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)

0
tmk_core/common/eeprom.h → platforms/eeprom.h

0
tmk_core/common/gpio.h → platforms/gpio.h

0
tmk_core/common/pin_defs.h → platforms/pin_defs.h

0
tmk_core/common/progmem.h → platforms/progmem.h

0
tmk_core/common/sleep_led.h → platforms/sleep_led.h

0
tmk_core/common/suspend.h → platforms/suspend.h

0
tmk_core/common/test/_wait.h → platforms/test/_wait.h

0
tmk_core/common/test/bootloader.c → platforms/test/bootloader.c

0
tmk_core/common/test/eeprom.c → platforms/test/eeprom.c

0
tmk_core/common/test/eeprom_stm32_tests.cpp → platforms/test/eeprom_stm32_tests.cpp

0
tmk_core/common/test/flash_stm32_mock.c → platforms/test/flash_stm32_mock.c

0
tmk_core/common/test/hal.h → platforms/test/hal.h

0
tmk_core/common/test/platform.c → platforms/test/platform.c

0
tmk_core/common/test/platform.h → platforms/test/platform.h

0
tmk_core/native.mk → platforms/test/platform.mk

0
tmk_core/common/test/platform_deps.h → platforms/test/platform_deps.h

8
tmk_core/common/test/rules.mk → platforms/test/rules.mk

@ -11,14 +11,14 @@ eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \
-DFEE_PAGE_COUNT=16
eeprom_stm32_INC := \
$(TMK_PATH)/common/chibios/
$(PLATFORM_PATH)/chibios/
eeprom_stm32_tiny_INC := $(eeprom_stm32_INC)
eeprom_stm32_large_INC := $(eeprom_stm32_INC)
eeprom_stm32_SRC := \
$(TOP_DIR)/drivers/eeprom/eeprom_driver.c \
$(TMK_PATH)/common/test/eeprom_stm32_tests.cpp \
$(TMK_PATH)/common/test/flash_stm32_mock.c \
$(TMK_PATH)/common/chibios/eeprom_stm32.c
$(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_stm32_tests.cpp \
$(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \
$(PLATFORM_PATH)/chibios/eeprom_stm32.c
eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC)
eeprom_stm32_large_SRC := $(eeprom_stm32_SRC)

0
tmk_core/common/test/suspend.c → platforms/test/suspend.c

0
tmk_core/common/test/testlist.mk → platforms/test/testlist.mk

0
tmk_core/common/test/timer.c → platforms/test/timer.c

0
tmk_core/common/timer.h → platforms/timer.h

0
tmk_core/common/wait.h → platforms/wait.h

2
quantum/debounce/tests/rules.mk

@ -16,7 +16,7 @@
DEBOUNCE_COMMON_DEFS := -DMATRIX_ROWS=4 -DMATRIX_COLS=10 -DDEBOUNCE=5
DEBOUNCE_COMMON_SRC := $(QUANTUM_PATH)/debounce/tests/debounce_test_common.cpp \
$(TMK_PATH)/common/test/timer.c
$(PLATFORM_PATH)/$(PLATFORM_KEY)/timer.c
debounce_sym_defer_g_DEFS := $(DEBOUNCE_COMMON_DEFS)
debounce_sym_defer_g_SRC := $(DEBOUNCE_COMMON_SRC) \

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save