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
28
29
30
31
| #ifndef __LED_H__
| #define __LED_H__
|
| #include <stdio.h>
| #include <stdint.h>
| #include <stdarg.h>
| #include "board_common.h"
|
| /*--------------------Led--------------------*/
| enum
| {
| LED_ALARM = 0,
| LED_FAULT,
| LED_MUTE,
| LED_RUN,
| LED_COMS,
| LED_COMF,
| };
|
| #define TURN_ON 0
| #define TURN_OFF 1
|
| #define LED_RUN_PORT GPIOA
| #define LED_RUN_PIN GPIO_PIN_12 /* Led4 */
|
| void Board_LedInit(void);
| void Board_TurnLed(uint8_t u8Which, uint8_t u8Cmd);
| void Board_LedTest(void);
| void Board_LedCheckSelf(void);
|
| #endif /* End of __LED_H__ */
|
|