Also, implement a software watchdog to make sure that the main real-time modules are actually being run. Provide a panic facility, also giving blink codes to indicate the panic reason.
14 lines
263 B
C
14 lines
263 B
C
/* led.h */
|
|
|
|
#include "timer.h"
|
|
|
|
typedef unsigned int led_pattern;
|
|
|
|
extern led_pattern led_pattern_active[];
|
|
extern led_pattern led_pattern_unknown[];
|
|
|
|
void led_init(void);
|
|
void led_set(bool on);
|
|
void led_update(void);
|
|
void led_set_pattern(led_pattern *pattern);
|