|
|
@ -6,12 +6,12 @@ |
|
|
|
|
|
|
|
#define GPIO_DEBUG_LIGHT 12 |
|
|
|
#define GPIO_POWER_LIGHT 12 |
|
|
|
#define GPIO_HEATING_STATE_LIGHT 12 |
|
|
|
#define GPIO_HEATING_PLATE_STATE_LIGHT 12 |
|
|
|
#define GPIO_REACTION_STATE_LIGHT 12 |
|
|
|
#define GPIO_WIFI_STATE_LIGHT 12 |
|
|
|
|
|
|
|
static power_state_light_structer_t *power_state_light_structer_s; |
|
|
|
static heating_state_light_structer_t *heating_state_light_structer_s; |
|
|
|
static heating_plate_state_light_structer_t *heating_plate_state_light_structer_s; |
|
|
|
static reaction_state_light_structer_t *reaction_state_light_structer_s; |
|
|
|
static wifi_state_light_structer_t *wifi_state_light_structer_s; |
|
|
|
|
|
|
@ -50,18 +50,18 @@ void T_power_light_init(power_state_light_structer_t *power_state_light_structer |
|
|
|
} |
|
|
|
|
|
|
|
// Heating state light |
|
|
|
void T_heating_state_light_init(heating_state_light_structer_t *heating_state_light_structer) |
|
|
|
void T_heating_plate_state_light_init(heating_plate_state_light_structer_t *heating_plate_state_light_structer) |
|
|
|
{ |
|
|
|
heating_state_light_structer_s = heating_state_light_structer; |
|
|
|
gpio_config_t gpio_heating_state_light_init_structer; |
|
|
|
heating_plate_state_light_structer_s = heating_plate_state_light_structer; |
|
|
|
gpio_config_t gpio_heating_plate_state_light_init_structer; |
|
|
|
|
|
|
|
gpio_heating_state_light_init_structer.intr_type = GPIO_INTR_DISABLE; |
|
|
|
gpio_heating_state_light_init_structer.mode = GPIO_MODE_INPUT_OUTPUT; |
|
|
|
gpio_heating_state_light_init_structer.pin_bit_mask = (1ULL << GPIO_HEATING_STATE_LIGHT); |
|
|
|
gpio_heating_state_light_init_structer.pull_down_en = 0; |
|
|
|
gpio_heating_state_light_init_structer.pull_up_en = 0; |
|
|
|
gpio_heating_plate_state_light_init_structer.intr_type = GPIO_INTR_DISABLE; |
|
|
|
gpio_heating_plate_state_light_init_structer.mode = GPIO_MODE_INPUT_OUTPUT; |
|
|
|
gpio_heating_plate_state_light_init_structer.pin_bit_mask = (1ULL << GPIO_HEATING_PLATE_STATE_LIGHT); |
|
|
|
gpio_heating_plate_state_light_init_structer.pull_down_en = 0; |
|
|
|
gpio_heating_plate_state_light_init_structer.pull_up_en = 0; |
|
|
|
|
|
|
|
gpio_config(&gpio_heating_state_light_init_structer); |
|
|
|
gpio_config(&gpio_heating_plate_state_light_init_structer); |
|
|
|
} |
|
|
|
|
|
|
|
// Reaction state light |
|
|
|