You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
#ifndef __MAIN_H__
|
|
#define __MAIN_H__
|
|
|
|
#include "irqhandler.h"
|
|
#include "key.h"
|
|
#include "lib_config.h"
|
|
#include "light.h"
|
|
#include "ozone_pwm_control.h"
|
|
#include "port.h"
|
|
#include "pwm.h"
|
|
#include "system_ES8P5066.h"
|
|
#include "systick.h"
|
|
#include "uart0.h"
|
|
typedef enum {
|
|
kwork_level_close = 0, /*关闭PWM输出,关闭RGB*/
|
|
kwork_level_low = 1, /*低档*/
|
|
kwork_level_hight = 2, /*高档*/
|
|
} work_level_t;
|
|
|
|
typedef struct {
|
|
bool fan_error_status; /*风扇电压异常*/
|
|
bool way_circuit_error_status; /*总电压异常*/
|
|
} error_state_t;
|
|
|
|
// void Uart0Init(void);
|
|
// void Uart0SendBuff(uint8_t *buff);
|
|
// void port_do_debug_light_state(void);
|
|
// void LedInit(void);
|
|
|
|
void process_intervalkey_press_even(void);
|
|
void update_interval_period_duty(uint8_t interval_duty);
|
|
void restore_the_mode_before_intermittent_work(void);
|
|
void process_rgb_flicker(void);
|
|
void power_on_ozone_working_status(void);
|
|
void update_ozone_work_level(work_level_t level);
|
|
void process_levelkey_press_even(void);
|
|
void shutdown(void);
|
|
void starting_up(void);
|
|
void process_powerkey(void);
|
|
void updae_timing_light_state(void);
|
|
void update_timing_time(void);
|
|
void try_shutdown(void);
|
|
bool timing_function_is_enable(void);
|
|
void iwdt_init(void);
|
|
void feed_iwdt(void);
|
|
void process_error_even(void);
|
|
#endif
|