]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - tmk_core/common/chibios/sleep_led.c
Chibios: use WFI in idle. WIP suspend stuff.
[max/tmk_keyboard.git] / tmk_core / common / chibios / sleep_led.c
1 #include "ch.h"
2
3 #include "led.h"
4 #include "sleep_led.h"
5
6 void sleep_led_init(void) {
7         // we could go the 'software way' -- just enable *some* timer
8         // and go with callbacks
9         // or we could go the 'hardware way' -- and use timer output to
10         // pins directly
11 }
12
13 void sleep_led_enable(void) {
14     led_set(1<<USB_LED_CAPS_LOCK);
15 }
16
17 void sleep_led_disable(void) {
18     led_set(0);
19 }
20
21 void sleep_led_toggle(void) {
22     // not working yet, state not saved anywhere currently
23 }