1
0
tmk_keyboard/tmk_core/common/chibios/sleep_led.c
2015-10-14 10:13:49 +01:00

24 行
470 B
C

#include "ch.h"
#include "led.h"
#include "sleep_led.h"
void sleep_led_init(void) {
// we could go the 'software way' -- just enable *some* timer
// and go with callbacks
// or we could go the 'hardware way' -- and use timer output to
// pins directly
}
void sleep_led_enable(void) {
led_set(1<<USB_LED_CAPS_LOCK);
}
void sleep_led_disable(void) {
led_set(0);
}
void sleep_led_toggle(void) {
// not working yet, state not saved anywhere currently
}