mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Migrate platform independent code from tmk_core -> quantum (#13673)
* Migrate action|keyboard|keycode|eeconfig from tmk_core -> quantum
This commit is contained in:
parent
96e2b13d1d
commit
b8e913c8db
|
@ -20,6 +20,13 @@ QUANTUM_SRC += \
|
||||||
$(QUANTUM_DIR)/send_string.c \
|
$(QUANTUM_DIR)/send_string.c \
|
||||||
$(QUANTUM_DIR)/bitwise.c \
|
$(QUANTUM_DIR)/bitwise.c \
|
||||||
$(QUANTUM_DIR)/led.c \
|
$(QUANTUM_DIR)/led.c \
|
||||||
|
$(QUANTUM_DIR)/action.c \
|
||||||
|
$(QUANTUM_DIR)/action_layer.c \
|
||||||
|
$(QUANTUM_DIR)/action_macro.c \
|
||||||
|
$(QUANTUM_DIR)/action_tapping.c \
|
||||||
|
$(QUANTUM_DIR)/action_util.c \
|
||||||
|
$(QUANTUM_DIR)/eeconfig.c \
|
||||||
|
$(QUANTUM_DIR)/keyboard.c \
|
||||||
$(QUANTUM_DIR)/keymap_common.c \
|
$(QUANTUM_DIR)/keymap_common.c \
|
||||||
$(QUANTUM_DIR)/keycode_config.c \
|
$(QUANTUM_DIR)/keycode_config.c \
|
||||||
$(QUANTUM_DIR)/logging/debug.c \
|
$(QUANTUM_DIR)/logging/debug.c \
|
||||||
|
|
|
@ -256,6 +256,8 @@ void keyboard_setup(void) {
|
||||||
keyboard_pre_init_kb();
|
keyboard_pre_init_kb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SPLIT_KEYBOARD
|
||||||
|
|
||||||
/** \brief is_keyboard_master
|
/** \brief is_keyboard_master
|
||||||
*
|
*
|
||||||
* FIXME: needs doc
|
* FIXME: needs doc
|
||||||
|
@ -268,6 +270,8 @@ __attribute__((weak)) bool is_keyboard_master(void) { return true; }
|
||||||
*/
|
*/
|
||||||
__attribute__((weak)) bool is_keyboard_left(void) { return true; }
|
__attribute__((weak)) bool is_keyboard_left(void) { return true; }
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/** \brief should_process_keypress
|
/** \brief should_process_keypress
|
||||||
*
|
*
|
||||||
* Override this function if you have a condition where keypresses processing should change:
|
* Override this function if you have a condition where keypresses processing should change:
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "tmk_core/common/eeconfig.h" // for EECONFIG_SIZE
|
#include "eeconfig.h" // for EECONFIG_SIZE
|
||||||
|
|
||||||
// Keyboard level code can change where VIA stores the magic.
|
// Keyboard level code can change where VIA stores the magic.
|
||||||
// The magic is the build date YYMMDD encoded as BCD in 3 bytes,
|
// The magic is the build date YYMMDD encoded as BCD in 3 bytes,
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
COMMON_DIR = common
|
COMMON_DIR = common
|
||||||
PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
|
PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
|
||||||
|
|
||||||
TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
|
TMK_COMMON_SRC += \
|
||||||
$(COMMON_DIR)/keyboard.c \
|
$(COMMON_DIR)/host.c \
|
||||||
$(COMMON_DIR)/action.c \
|
|
||||||
$(COMMON_DIR)/action_tapping.c \
|
|
||||||
$(COMMON_DIR)/action_macro.c \
|
|
||||||
$(COMMON_DIR)/action_layer.c \
|
|
||||||
$(COMMON_DIR)/action_util.c \
|
|
||||||
$(COMMON_DIR)/eeconfig.c \
|
|
||||||
$(COMMON_DIR)/report.c \
|
$(COMMON_DIR)/report.c \
|
||||||
$(COMMON_DIR)/sync_timer.c \
|
$(COMMON_DIR)/sync_timer.c \
|
||||||
$(COMMON_DIR)/usb_util.c \
|
$(COMMON_DIR)/usb_util.c \
|
||||||
|
|
Loading…
Reference in a new issue