aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorRobin Carlier <[email protected]>2024-03-29 04:40:41 +0100
committerGitHub <[email protected]>2024-03-28 20:40:41 -0700
commit42a725e355e64d170fc42738ddbb1ed1128892e9 (patch)
tree0b94ca4909947b70833abc0ff4503ea32c6e5b82 /tmk_core
parent1d55b5e6616b8dbba8a4908b7ee0d50af11285f0 (diff)
downloadqmk_firmware-42a725e355e64d170fc42738ddbb1ed1128892e9.tar.gz
qmk_firmware-42a725e355e64d170fc42738ddbb1ed1128892e9.zip
Remove midi_ep_task from ChibiOS (#23162)
Co-authored-by: Joel Challis <[email protected]>
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/chibios/chibios.c7
-rw-r--r--tmk_core/protocol/chibios/usb_main.c9
2 files changed, 0 insertions, 16 deletions
diff --git a/tmk_core/protocol/chibios/chibios.c b/tmk_core/protocol/chibios/chibios.c
index 360e6b4b04..a02097785f 100644
--- a/tmk_core/protocol/chibios/chibios.c
+++ b/tmk_core/protocol/chibios/chibios.c
@@ -70,10 +70,6 @@ host_driver_t chibios_driver = {keyboard_leds, send_keyboard, send_nkro, send_mo
void virtser_task(void);
#endif
-#ifdef MIDI_ENABLE
-void midi_ep_task(void);
-#endif
-
/* TESTING
* Amber LED blinker thread, times are in milliseconds.
*/
@@ -202,9 +198,6 @@ void protocol_pre_task(void) {
}
void protocol_post_task(void) {
-#ifdef MIDI_ENABLE
- midi_ep_task();
-#endif
#ifdef VIRTSER_ENABLE
virtser_task();
#endif
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index ced5fd4fc2..2024a3bc7f 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -561,15 +561,6 @@ bool recv_midi_packet(MIDI_EventPacket_t *const event) {
return receive_report(USB_ENDPOINT_OUT_MIDI, (uint8_t *)event, sizeof(MIDI_EventPacket_t));
}
-void midi_ep_task(void) {
- uint8_t buffer[MIDI_STREAM_EPSIZE];
- while (receive_report(USB_ENDPOINT_OUT_MIDI, buffer, sizeof(buffer))) {
- MIDI_EventPacket_t event;
- // TODO: this seems totally wrong? The midi task will never see any
- // packets if we consume them here
- recv_midi_packet(&event);
- }
-}
#endif
#ifdef VIRTSER_ENABLE