Migrate platform independent code from tmk_core -> quantum (#13673)

* Migrate action|keyboard|keycode|eeconfig from tmk_core -> quantum
qmk_compile_improvements
Joel Challis 4 years ago committed by GitHub
parent 96e2b13d1d
commit b8e913c8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      common_features.mk
  2. 0
      quantum/action.c
  3. 0
      quantum/action.h
  4. 0
      quantum/action_code.h
  5. 0
      quantum/action_layer.c
  6. 0
      quantum/action_layer.h
  7. 0
      quantum/action_macro.c
  8. 0
      quantum/action_macro.h
  9. 0
      quantum/action_tapping.c
  10. 0
      quantum/action_tapping.h
  11. 0
      quantum/action_util.c
  12. 0
      quantum/action_util.h
  13. 0
      quantum/eeconfig.c
  14. 0
      quantum/eeconfig.h
  15. 4
      quantum/keyboard.c
  16. 0
      quantum/keyboard.h
  17. 0
      quantum/keycode.h
  18. 2
      quantum/via.h
  19. 10
      tmk_core/common.mk

@ -20,6 +20,13 @@ QUANTUM_SRC += \
$(QUANTUM_DIR)/send_string.c \
$(QUANTUM_DIR)/bitwise.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)/keycode_config.c \
$(QUANTUM_DIR)/logging/debug.c \

@ -256,6 +256,8 @@ void keyboard_setup(void) {
keyboard_pre_init_kb();
}
#ifndef SPLIT_KEYBOARD
/** \brief is_keyboard_master
*
* 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; }
#endif
/** \brief should_process_keypress
*
* Override this function if you have a condition where keypresses processing should change:

@ -16,7 +16,7 @@
#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.
// The magic is the build date YYMMDD encoded as BCD in 3 bytes,

@ -1,14 +1,8 @@
COMMON_DIR = common
PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
$(COMMON_DIR)/keyboard.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 \
TMK_COMMON_SRC += \
$(COMMON_DIR)/host.c \
$(COMMON_DIR)/report.c \
$(COMMON_DIR)/sync_timer.c \
$(COMMON_DIR)/usb_util.c \

Loading…
Cancel
Save