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

4 years ago
3 years ago
4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
  1. /*********************************************************
  2. *Copyright (C), 2017, Shanghai Eastsoft Microelectronics Co., Ltd
  3. *: main.h
  4. * : AE Team
  5. * : V1.00
  6. * : 2021/05/13
  7. * :
  8. * : 使
  9. **********************************************************/
  10. #ifndef __MAIN_H__
  11. #define __MAIN_H__
  12. #include "irqhandler.h"
  13. #include "key.h"
  14. #include "lib_config.h"
  15. #include "light.h"
  16. #include "ozone_pwm_control.h"
  17. #include "port.h"
  18. #include "pwm.h"
  19. #include "system_ES8P5066.h"
  20. #include "systick.h"
  21. #include "uart0.h"
  22. typedef enum {
  23. WORK_LEVEL_CLOSE = 0, /*关闭PWM输出,关闭RGB*/
  24. WORK_LEVEL_HIGHT = 1, /*高档*/
  25. WORK_LEVEL_MIDDLE = 2, /*中档*/
  26. WORK_LEVEL_LOW = 3, /*低档*/
  27. } WORK_LEVEL_T;
  28. typedef struct {
  29. bool fan_error_status; /*风扇电压异常*/
  30. bool way_circuit_error_status; /*总电压异常*/
  31. } error_state_t;
  32. // void Uart0Init(void);
  33. // void Uart0SendBuff(uint8_t *buff);
  34. // void port_do_debug_light_state(void);
  35. // void LedInit(void);
  36. void process_intervalkey_press_even(void);
  37. void update_interval_period_duty(uint8_t interval_duty);
  38. void restore_the_mode_before_intermittent_work(void);
  39. void process_rgb_flicker(void);
  40. void power_on_ozone_working_status(void);
  41. void update_ozone_work_gears(WORK_LEVEL_T gears);
  42. void process_gearskey_press_even(void);
  43. void shutdown(void);
  44. void starting_up(void);
  45. void process_switchkey(void);
  46. void updae_timing_light_state(void);
  47. void update_timing_time(void);
  48. void try_shutdown(void);
  49. bool timing_function_is_enable(void);
  50. void iwdt_init(void);
  51. void feed_iwdt(void);
  52. void process_error_even(void);
  53. #endif