2016-01-25 11:12:13 -08:00
|
|
|
#ifndef _LED_H
|
|
|
|
#define _LED_H
|
|
|
|
|
|
|
|
|
2016-08-12 13:56:25 -07:00
|
|
|
#define LED_BLUE_Pin GPIO_PIN_1
|
|
|
|
#define LED_BLUE_Port GPIOB
|
|
|
|
#define LED_BLUE LED_BLUE_Port , LED_BLUE_Pin
|
|
|
|
|
2016-08-13 11:22:24 -07:00
|
|
|
#define LED_GREEN_Pin GPIO_PIN_0
|
2016-08-12 14:12:52 -07:00
|
|
|
#define LED_GREEN_Port GPIOB
|
|
|
|
#define LED_GREEN LED_GREEN_Port , LED_GREEN_Pin
|
|
|
|
|
|
|
|
|
2016-08-12 13:56:25 -07:00
|
|
|
|
2018-10-07 11:19:58 -07:00
|
|
|
#define LED_DURATION 25
|
2016-01-25 11:12:13 -08:00
|
|
|
|
2016-08-11 19:09:39 -07:00
|
|
|
void led_init();
|
2016-08-12 14:12:52 -07:00
|
|
|
void led_blue_blink(uint8_t numblinks);
|
|
|
|
void led_green_on(void);
|
2016-08-13 11:22:24 -07:00
|
|
|
void led_green_off(void);
|
2016-08-12 14:12:52 -07:00
|
|
|
void led_blue_on(void);
|
2016-01-25 11:12:13 -08:00
|
|
|
void led_process(void);
|
|
|
|
|
|
|
|
#endif
|