aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/e300/battery/led.h
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-07-13 14:03:42 -0700
committerMoritz Fischer <moritz.fischer@ettus.com>2015-07-13 14:03:42 -0700
commitc65e0ea6e387b39e115b6af28e79ba1418f605b2 (patch)
tree85bc5673ca01f22b6b9362b0aba8c80d13ba1eab /firmware/e300/battery/led.h
parent69bcfba936e49c2825a6d9be677c3150a5c6b70c (diff)
downloaduhd-c65e0ea6e387b39e115b6af28e79ba1418f605b2.tar.gz
uhd-c65e0ea6e387b39e115b6af28e79ba1418f605b2.tar.bz2
uhd-c65e0ea6e387b39e115b6af28e79ba1418f605b2.zip
e3xx: Added firmware for battery based devices.
Note: This firmware does *not* support Rev B units. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
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 */