summaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/chibios
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-23 00:07:28 +1000
committerGitHub <noreply@github.com>2023-06-22 15:07:28 +0100
commitaad57466827c6aac8f612f5fbbb5adcea6fc5975 (patch)
tree45940a49fe72a1b56a77cf54555c872f00210138 /tmk_core/protocol/chibios
parentfb76c941ee9d0713c5fc2d2609b8381de14df184 (diff)
Move protocol makefiles into their respective folders (#21332)
* Move protocol makefiles into their respective folders * Fix USB-USB converter
Diffstat (limited to 'tmk_core/protocol/chibios')
-rw-r--r--tmk_core/protocol/chibios/chibios.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/tmk_core/protocol/chibios/chibios.mk b/tmk_core/protocol/chibios/chibios.mk
new file mode 100644
index 0000000000..8eaf5b10d2
--- /dev/null
+++ b/tmk_core/protocol/chibios/chibios.mk
@@ -0,0 +1,17 @@
+PROTOCOL_DIR = protocol
+CHIBIOS_DIR = $(PROTOCOL_DIR)/chibios
+
+
+SRC += $(CHIBIOS_DIR)/usb_main.c
+SRC += $(CHIBIOS_DIR)/chibios.c
+SRC += usb_descriptor.c
+SRC += $(CHIBIOS_DIR)/usb_driver.c
+SRC += $(CHIBIOS_DIR)/usb_util.c
+SRC += $(LIBSRC)
+
+VPATH += $(TMK_PATH)/$(PROTOCOL_DIR)
+VPATH += $(TMK_PATH)/$(CHIBIOS_DIR)
+VPATH += $(TMK_PATH)/$(CHIBIOS_DIR)/lufa_utils
+
+OPT_DEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=64
+OPT_DEFS += -DFIXED_NUM_CONFIGURATIONS=1