blob: 0952dc3d290ab2748f275a9c14e570e80dd037b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 */
|