您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

1234567891011121314151617181920212223
  1. #include "ch.h"
  2. #include "led.h"
  3. #include "sleep_led.h"
  4. void sleep_led_init(void) {
  5. // we could go the 'software way' -- just enable *some* timer
  6. // and go with callbacks
  7. // or we could go the 'hardware way' -- and use timer output to
  8. // pins directly
  9. }
  10. void sleep_led_enable(void) {
  11. led_set(1<<USB_LED_CAPS_LOCK);
  12. }
  13. void sleep_led_disable(void) {
  14. led_set(0);
  15. }
  16. void sleep_led_toggle(void) {
  17. // not working yet, state not saved anywhere currently
  18. }