led_ctl.h 387 B

123456789101112131415161718
  1. /* led_ctl.h - Interface for LED Control */
  2. #ifndef _LED_CTL_H_
  3. #define _LED_CTL_H_
  4. #include <stdint.h>
  5. typedef enum
  6. {
  7. LED_GREEN = 0,
  8. LED_RED = 1
  9. } led_color_t;
  10. int led_driver_init(void); // get IO port permissions
  11. int led_set_color(led_color_t color);
  12. int led_set_blink(int enable, uint8_t interval_unit);
  13. int led_print_status(void);
  14. #endif // _LED_CTL_H_