summaryrefslogtreecommitdiffstats
path: root/keyboards/infinity60/led.c
diff options
context:
space:
mode:
authorjpetermans <tibcmhhm@gmail.com>2017-04-08 00:58:17 +0200
committerjpetermans <tibcmhhm@gmail.com>2017-04-08 00:58:17 +0200
commita2ac8837790030b771744402aac8d8ab0e1967aa (patch)
tree2bdb2d81fec9f6b3ab56a37ae63476f72ccd2fe7 /keyboards/infinity60/led.c
parentaf13e9a12d64f74873e5bf429fdedcda37b3036a (diff)
downloadqmk_firmware-a2ac8837790030b771744402aac8d8ab0e1967aa.tar.gz
qmk_firmware-a2ac8837790030b771744402aac8d8ab0e1967aa.tar.xz
add ability to toggle individual led by address
Diffstat (limited to 'keyboards/infinity60/led.c')
-rw-r--r--keyboards/infinity60/led.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/keyboards/infinity60/led.c b/keyboards/infinity60/led.c
index e17a5dd0d..815a529fc 100644
--- a/keyboards/infinity60/led.c
+++ b/keyboards/infinity60/led.c
@@ -36,6 +36,9 @@ void led_set(uint8_t usb_led) {
GPIOA->PCOR |= (1<<5);
}
*/
+//TODO: How does this test if led is set
+//usb_led --> led_set(usb_led) <-- chibios/host_keyboard_leds <-- keyboard_leds from usbSetupTransfer
+//keyboard_leds is enum'd in chibios/main.c
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// signal the LED control thread
chSysUnconditionalLock();