summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorRobin Carlier <57142648+robin-carlier@users.noreply.github.com>2024-03-29 04:40:41 +0100
committerGitHub <noreply@github.com>2024-03-28 20:40:41 -0700
commit42a725e355e64d170fc42738ddbb1ed1128892e9 (patch)
tree0b94ca4909947b70833abc0ff4503ea32c6e5b82 /tmk_core/protocol
parent1d55b5e6616b8dbba8a4908b7ee0d50af11285f0 (diff)
Remove midi_ep_task from ChibiOS (#23162)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'tmk_core/protocol')
-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
70void virtser_task(void); 70void virtser_task(void);
71#endif 71#endif
72 72
73#ifdef MIDI_ENABLE
74void midi_ep_task(void);
75#endif
76
77/* TESTING 73/* TESTING
78 * Amber LED blinker thread, times are in milliseconds. 74 * Amber LED blinker thread, times are in milliseconds.
79 */ 75 */
@@ -202,9 +198,6 @@ void protocol_pre_task(void) {
202} 198}
203 199
204void protocol_post_task(void) { 200void protocol_post_task(void) {
205#ifdef MIDI_ENABLE
206 midi_ep_task();
207#endif
208#ifdef VIRTSER_ENABLE 201#ifdef VIRTSER_ENABLE
209 virtser_task(); 202 virtser_task();
210#endif 203#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) {
561 return receive_report(USB_ENDPOINT_OUT_MIDI, (uint8_t *)event, sizeof(MIDI_EventPacket_t)); 561 return receive_report(USB_ENDPOINT_OUT_MIDI, (uint8_t *)event, sizeof(MIDI_EventPacket_t));
562} 562}
563 563
564void midi_ep_task(void) {
565 uint8_t buffer[MIDI_STREAM_EPSIZE];
566 while (receive_report(USB_ENDPOINT_OUT_MIDI, buffer, sizeof(buffer))) {
567 MIDI_EventPacket_t event;
568 // TODO: this seems totally wrong? The midi task will never see any
569 // packets if we consume them here
570 recv_midi_packet(&event);
571 }
572}
573#endif 564#endif
574 565
575#ifdef VIRTSER_ENABLE 566#ifdef VIRTSER_ENABLE