From 242b80c63ffff022172755da35fb4767d5f837c2 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 30 Jan 2023 18:47:50 +1100 Subject: [PATCH] Move MIDI code out of tmk_core (#19704) --- builddefs/common_features.mk | 7 +++++++ docs/feature_midi.md | 8 ++++---- .../protocol => quantum}/midi/Config/LUFAConfig.h | 0 {tmk_core/protocol => quantum}/midi/bytequeue/COPYING | 0 .../protocol => quantum}/midi/bytequeue/bytequeue.c | 0 .../protocol => quantum}/midi/bytequeue/bytequeue.h | 0 .../midi/bytequeue/interrupt_setting.c | 0 .../midi/bytequeue/interrupt_setting.h | 0 {tmk_core/protocol => quantum}/midi/midi.c | 0 {tmk_core/protocol => quantum}/midi/midi.h | 0 {tmk_core/protocol => quantum}/midi/midi_device.c | 0 {tmk_core/protocol => quantum}/midi/midi_device.h | 0 .../protocol => quantum}/midi/midi_function_types.h | 0 {tmk_core/protocol => quantum}/midi/qmk_midi.c | 0 {tmk_core/protocol => quantum}/midi/qmk_midi.h | 0 {tmk_core/protocol => quantum}/midi/sysex_tools.c | 0 {tmk_core/protocol => quantum}/midi/sysex_tools.h | 0 tmk_core/protocol/chibios.mk | 4 ---- tmk_core/protocol/lufa.mk | 4 ---- tmk_core/protocol/midi.mk | 11 ----------- 20 files changed, 11 insertions(+), 23 deletions(-) rename {tmk_core/protocol => quantum}/midi/Config/LUFAConfig.h (100%) rename {tmk_core/protocol => quantum}/midi/bytequeue/COPYING (100%) rename {tmk_core/protocol => quantum}/midi/bytequeue/bytequeue.c (100%) rename {tmk_core/protocol => quantum}/midi/bytequeue/bytequeue.h (100%) rename {tmk_core/protocol => quantum}/midi/bytequeue/interrupt_setting.c (100%) rename {tmk_core/protocol => quantum}/midi/bytequeue/interrupt_setting.h (100%) rename {tmk_core/protocol => quantum}/midi/midi.c (100%) rename {tmk_core/protocol => quantum}/midi/midi.h (100%) rename {tmk_core/protocol => quantum}/midi/midi_device.c (100%) rename {tmk_core/protocol => quantum}/midi/midi_device.h (100%) rename {tmk_core/protocol => quantum}/midi/midi_function_types.h (100%) rename {tmk_core/protocol => quantum}/midi/qmk_midi.c (100%) rename {tmk_core/protocol => quantum}/midi/qmk_midi.h (100%) rename {tmk_core/protocol => quantum}/midi/sysex_tools.c (100%) rename {tmk_core/protocol => quantum}/midi/sysex_tools.h (100%) delete mode 100644 tmk_core/protocol/midi.mk diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index dbcfcb7145..4e032f9dcf 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -84,6 +84,13 @@ endif ifeq ($(strip $(MIDI_ENABLE)), yes) OPT_DEFS += -DMIDI_ENABLE MUSIC_ENABLE = yes + COMMON_VPATH += $(QUANTUM_PATH)/midi + SRC += $(QUANTUM_DIR)/midi/midi.c + SRC += $(QUANTUM_DIR)/midi/midi_device.c + SRC += $(QUANTUM_DIR)/midi/qmk_midi.c + SRC += $(QUANTUM_DIR)/midi/sysex_tools.c + SRC += $(QUANTUM_DIR)/midi/bytequeue/bytequeue.c + SRC += $(QUANTUM_DIR)/midi/bytequeue/interrupt_setting.c SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c endif diff --git a/docs/feature_midi.md b/docs/feature_midi.md index 1f0809ef14..775a5e34ee 100644 --- a/docs/feature_midi.md +++ b/docs/feature_midi.md @@ -250,10 +250,10 @@ For the above, the `MI_C` keycode will produce a C3 (note number 48), and so on. * `quantum/process_keycode/process_midi.c` * `quantum/quantum_keycodes.h` - * `tmk_core/protocol/midi.h` - * `tmk_core/protocol/midi.c` - * `tmk_core/protocol/qmk_midi.c` - * `tmk_core/protocol/midi_device.h` + * `quantum/midi/midi.h` + * `quantum/midi/midi.c` + * `quantum/midi/qmk_midi.c` + * `quantum/midi/midi_device.h`