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.
65 lines
1.9 KiB
65 lines
1.9 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 "lib_config.h"
|
|
#include "light.h"
|
|
#include "system_ES8P5066.h"
|
|
#include "systick.h"
|
|
|
|
//#include "gpio.h"
|
|
#include "irqhandler.h"
|
|
#include "key.h"
|
|
#include "ozone_pwm_control.h"
|
|
#include "ozone_work.h"
|
|
#include "port.h"
|
|
#include "pwm.h"
|
|
#include "timer.h"
|
|
#include "uart0.h"
|
|
|
|
typedef enum {
|
|
WORK_GEARS_CLOSE = 0, /*关闭PWM输出,关闭RGB*/
|
|
WORK_GEARS_SLAP_UP = 1, /*高档*/
|
|
WORK_GEARS_MIDDLE_GRADE = 2, /*中档*/
|
|
WORK_GEARS_LOW_END = 3, /*低档*/
|
|
} WORK_GEARS_T;
|
|
|
|
typedef enum {
|
|
NO_ERROR_EVENT = 0, /*没有异常*/
|
|
ERROR_EVEN_FAN = 1, /*风扇电压异常*/
|
|
ERROR_EVEN_WAY_CIRCUIT = 2, /*总电压异常*/
|
|
} ERROR_EVEN_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 before_resuming_flicker_rgb_mode(void);
|
|
void before_resuming_flicker_rgb_mode(void);
|
|
void process_rgb_flicker(void);
|
|
void power_on_ozone_working_status(void);
|
|
void update_ozone_work_gears(WORK_GEARS_T gears);
|
|
void process_gearskey_press_even(void);
|
|
void shutdown(void);
|
|
void starting_up(void);
|
|
void process_switchkey(void);
|
|
void updae_led_light_mode(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
|