Relocate protocol files within tmk_core/common/ (#14972)

* Relocate non platform files within tmk_core/common/

* clang
fix_template_bootmagic
Joel Challis 4 years ago committed by GitHub
parent 0c87e2e702
commit dcfffa7b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      common_features.mk
  2. 3
      quantum/keyboard.c
  3. 0
      quantum/raw_hid.h
  4. 0
      quantum/sync_timer.c
  5. 0
      quantum/sync_timer.h
  6. 2
      quantum/virtser.h
  7. 4
      tmk_core/common.mk
  8. 6
      tmk_core/protocol.mk
  9. 0
      tmk_core/protocol/host.c
  10. 0
      tmk_core/protocol/host.h
  11. 0
      tmk_core/protocol/host_driver.h
  12. 0
      tmk_core/protocol/report.c
  13. 0
      tmk_core/protocol/report.h
  14. 0
      tmk_core/protocol/usb_device_state.c
  15. 0
      tmk_core/protocol/usb_device_state.h
  16. 0
      tmk_core/protocol/usb_util.c
  17. 0
      tmk_core/protocol/usb_util.h

@ -27,7 +27,7 @@ QUANTUM_SRC += \
$(QUANTUM_DIR)/keyboard.c \
$(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/keycode_config.c \
$(QUANTUM_DIR)/usb_device_state.c \
$(QUANTUM_DIR)/sync_timer.c \
$(QUANTUM_DIR)/logging/debug.c \
$(QUANTUM_DIR)/logging/sendchar.c \

@ -94,6 +94,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef DIGITIZER_ENABLE
# include "digitizer.h"
#endif
#ifdef VIRTSER_ENABLE
# include "virtser.h"
#endif
static uint32_t last_input_modification_time = 0;
uint32_t last_input_activity_time(void) { return last_input_modification_time; }

@ -1,5 +1,7 @@
#pragma once
void virtser_init(void);
/* Define this function in your code to process incoming bytes */
void virtser_recv(const uint8_t ch);

@ -2,10 +2,6 @@ COMMON_DIR = common
PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
TMK_COMMON_SRC += \
$(COMMON_DIR)/host.c \
$(COMMON_DIR)/report.c \
$(COMMON_DIR)/sync_timer.c \
$(COMMON_DIR)/usb_util.c \
$(PLATFORM_COMMON_DIR)/platform.c \
$(PLATFORM_COMMON_DIR)/suspend.c \
$(PLATFORM_COMMON_DIR)/timer.c \

@ -1,5 +1,11 @@
PROTOCOL_DIR = protocol
TMK_COMMON_SRC += \
$(PROTOCOL_DIR)/host.c \
$(PROTOCOL_DIR)/report.c \
$(PROTOCOL_DIR)/usb_device_state.c \
$(PROTOCOL_DIR)/usb_util.c \
ifeq ($(strip $(USB_HID_ENABLE)), yes)
include $(TMK_DIR)/protocol/usb_hid.mk
endif

Loading…
Cancel
Save