瀏覽代碼

T4 - USB Keyboard support LEDS

Migrated the T3 code over to handle the message to set the logical keyboard LEDS

As per forum thread: https://forum.pjrc.com/threads/59372-Teensy-4-0-no-support-for-keyboard_leds
teensy4-core
Kurt Eckhardt 4 年之前
父節點
當前提交
bc7b06466e
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      teensy4/usb.c

+ 6
- 0
teensy4/usb.c 查看文件

@@ -620,6 +620,12 @@ static void endpoint0_complete(void)
}
}
#endif
#ifdef KEYBOARD_INTERFACE
if (setup.word1 == 0x02000921 && setup.word2 == ((1<<16)|KEYBOARD_INTERFACE)) {
keyboard_leds = endpoint0_buffer[0];
usb_start_sof_interrupts(NUM_INTERFACE);
}
#endif
#ifdef SEREMU_INTERFACE
if (setup.word1 == 0x03000921 && setup.word2 == ((4<<16)|SEREMU_INTERFACE)
&& endpoint0_buffer[0] == 0xA9 && endpoint0_buffer[1] == 0x45

Loading…
取消
儲存