00001
00044 #ifndef LEDS_H_INCLUDED
00045 #define LEDS_H_INCLUDED
00046
00047 #include <board/led.h>
00048
00049 #ifdef CONFIG_LED_BLINK
00050
00051 #include <timer_tc.h>
00052 #include <types.h>
00053
00061 struct blinking_led {
00063 enum board_led_id led;
00065 unsigned int period_ms;
00067 struct timer_task task;
00069 bool state;
00071 bool enabled;
00073 bool active;
00074 };
00075
00076 void led_blink_start(struct blinking_led *blink);
00077 void led_blink_stop(struct blinking_led *blink);
00078 void led_blink_init(struct blinking_led *blink, enum board_led_id led,
00079 unsigned int period_ms);
00080
00081 #endif
00082
00083 #endif