A59项目初版工程 1.电压+光感adc采样优化 2.串口逻辑优化
This commit is contained in:
61
app/moto/protocol/gpio_protocol.h
Normal file
61
app/moto/protocol/gpio_protocol.h
Normal file
@ -0,0 +1,61 @@
|
||||
#ifndef GPIO_PROTOCOL_H
|
||||
#define GPIO_PROTOCOL_H
|
||||
|
||||
#include "tkc/types_def.h"
|
||||
|
||||
#define GPIO_LIGHT 47
|
||||
|
||||
#define GPIO_LIGHT_R_LED_FLAG 11
|
||||
#define GPIO_LIGHT_L_LED_FLAG 10
|
||||
#define GPIO_LIGHT_MODE 9
|
||||
#define GPIO_LIGHT_SET 8
|
||||
|
||||
#define GPIO_LIGHT_R_LED 56
|
||||
#define GPIO_LIGHT_L_LED 5
|
||||
#define GPIO_LIGHT_YG_LED 53
|
||||
#define GPIO_LIGHT_ABS 55
|
||||
#define GPIO_LIGHT_OIL 54
|
||||
#define GPIO_LIGHT_N_LED 4
|
||||
#define GPIO_LIGHT_ENG_LED 15
|
||||
#define GPIO_LIGHT_VBAT_LED 61
|
||||
|
||||
|
||||
|
||||
#include "awtk.h"
|
||||
#include "gpio_protocol.h"
|
||||
|
||||
void light_gpio_init(void);
|
||||
void right_led_on(void);
|
||||
void right_led_off(void);
|
||||
void left_led_on(void);
|
||||
void left_led_off(void);
|
||||
void yg_led_on(void);
|
||||
void yg_led_off(void);
|
||||
void abs_led_on(void);
|
||||
void abs_led_off(void);
|
||||
void oil_led_on(void);
|
||||
void oil_led_off(void);
|
||||
void n_led_on(void);
|
||||
void n_led_off(void);
|
||||
void eng_led_on(void);
|
||||
void eng_led_off(void);
|
||||
void vbat_led_on(void);
|
||||
void vbat_led_off(void);
|
||||
void light_off(void);
|
||||
|
||||
static void gpio_right_handler(void);
|
||||
static void gpio_left_handler(void);
|
||||
static void gpio_mode_handler(void);
|
||||
static void gpio_set_handler(void);
|
||||
static void gpio_handler(void *param);
|
||||
|
||||
void right_led_switch(uint8_t type);
|
||||
void left_led_switch(uint8_t type);
|
||||
void yg_led_switch(uint8_t type);
|
||||
void abs_led_switch(uint8_t type);
|
||||
void oil_led_switch(uint8_t type);
|
||||
void n_led_switch(uint8_t type);
|
||||
void vbat_led_switch(uint8_t type);
|
||||
void eng_led_switch(uint8_t type);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user