| 123456789101112131415161718 |
- /* led_ctl.h - Interface for LED Control */
- #ifndef _LED_CTL_H_
- #define _LED_CTL_H_
- #include <stdint.h>
- typedef enum
- {
- LED_GREEN = 0,
- LED_RED = 1
- } led_color_t;
- int led_driver_init(void); // get IO port permissions
- int led_set_color(led_color_t color);
- int led_set_blink(int enable, uint8_t interval_unit);
- int led_print_status(void);
- #endif // _LED_CTL_H_
|