2
0

led.h 260 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "common.h"
  3. enum leds {
  4. LED_YELLOW,
  5. LED_BLUE,
  6. LED_GREEN
  7. };
  8. enum led_mode {
  9. LED_OFF,
  10. LED_ON,
  11. LED_FLASH,
  12. LED_FLASH_SLOW,
  13. LED_FLASH_FAST
  14. };
  15. extern_c void led_init(void);
  16. extern_c void led_set(int led, enum led_mode mode);