aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/e300/battery/led.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/e300/battery/led.h')
-rw-r--r--firmware/e300/battery/led.h27
1 files changed, 27 insertions, 0 deletions
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 <stdint.h>
+
+#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 */