Browse Source

Remove midi_ep_task from ChibiOS (#23162)

Co-authored-by: Joel Challis <git@zvecr.com>
pull/23375/head
Robin Carlier 1 month ago
committed by GitHub
parent
commit
42a725e355
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 16 deletions
  1. +0
    -7
      tmk_core/protocol/chibios/chibios.c
  2. +0
    -9
      tmk_core/protocol/chibios/usb_main.c

+ 0
- 7
tmk_core/protocol/chibios/chibios.c View File

@ -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


+ 0
- 9
tmk_core/protocol/chibios/usb_main.c View File

@ -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


Loading…
Cancel
Save