From c65e0ea6e387b39e115b6af28e79ba1418f605b2 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Mon, 13 Jul 2015 14:03:42 -0700 Subject: e3xx: Added firmware for battery based devices. Note: This firmware does *not* support Rev B units. Signed-off-by: Moritz Fischer --- firmware/e300/battery/led.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 firmware/e300/battery/led.h (limited to 'firmware/e300/battery/led.h') diff --git a/firmware/e300/battery/led.h b/firmware/e300/battery/led.h new file mode 100644 index 000000000..0952dc3d2 --- /dev/null +++ b/firmware/e300/battery/led.h @@ -0,0 +1,27 @@ +#ifndef LED_H +#define LED_H + +#include + +#include "interrupt.h" + +enum led_state { + LED_BLINK_GREEN_SLOW, + LED_BLINK_GREEN_FAST, + LED_BLINK_RED_FAST, + LED_BLINK_ORANGE, + LED_ORANGE, + LED_GREEN, + LED_RED, + LED_OFF +}; + +void led_set_blink_seq(uint8_t n_blinks, enum led_state state); + +void led_set_blink(enum led_state state); + +void led_set_solid(enum led_state state); + +extern irqreturn_t led_wdt_handler(void); + +#endif /* LED_H */ -- cgit v1.2.3