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.
 
 
 
 

59 lines
1.8 KiB

/*********************************************************
*Copyright (C), 2017, Shanghai Eastsoft Microelectronics Co., Ltd
*文件名: main.h
*作 者: AE Team
*版 本: V1.00
*日 期: 2021/05/13
*描 述:
*备 注: 本软件仅供学习和演示使用,对用户直接引用代码所带来的风险或后果不承担任何法律责任。
**********************************************************/
#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 {
WORK_LEVEL_CLOSE = 0, /*关闭PWM输出,关闭RGB*/
WORK_LEVEL_LOW = 1, /*低档*/
WORK_LEVEL_MIDDLE = 2, /*中档*/
WORK_LEVEL_HIGHT = 3, /*高档*/
} 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_gears(WORK_LEVEL_T gears);
void process_gearskey_press_even(void);
void shutdown(void);
void starting_up(void);
void process_switchkey(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