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.

50 lines
1.4 KiB

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
3 years ago
3 years ago
4 years ago
  1. #ifndef __MAIN_H__
  2. #define __MAIN_H__
  3. #include "irqhandler.h"
  4. #include "key.h"
  5. #include "lib_config.h"
  6. #include "light.h"
  7. #include "ozone_pwm_control.h"
  8. #include "port.h"
  9. #include "pwm.h"
  10. #include "system_ES8P5066.h"
  11. #include "systick.h"
  12. #include "uart0.h"
  13. typedef enum {
  14. WORK_LEVEL_CLOSE = 0, /*关闭PWM输出,关闭RGB*/
  15. WORK_LEVEL_LOW = 1, /*低档*/
  16. WORK_LEVEL_MIDDLE = 2, /*中档*/
  17. WORK_LEVEL_HIGHT = 3, /*高档*/
  18. } WORK_LEVEL_T;
  19. typedef struct {
  20. bool fan_error_status; /*风扇电压异常*/
  21. bool way_circuit_error_status; /*总电压异常*/
  22. } error_state_t;
  23. // void Uart0Init(void);
  24. // void Uart0SendBuff(uint8_t *buff);
  25. // void port_do_debug_light_state(void);
  26. // void LedInit(void);
  27. void process_intervalkey_press_even(void);
  28. void update_interval_period_duty(uint8_t interval_duty);
  29. void restore_the_mode_before_intermittent_work(void);
  30. void process_rgb_flicker(void);
  31. void power_on_ozone_working_status(void);
  32. void update_ozone_work_gears(WORK_LEVEL_T gears);
  33. void process_gearskey_press_even(void);
  34. void shutdown(void);
  35. void starting_up(void);
  36. void process_switchkey(void);
  37. void updae_timing_light_state(void);
  38. void update_timing_time(void);
  39. void try_shutdown(void);
  40. bool timing_function_is_enable(void);
  41. void iwdt_init(void);
  42. void feed_iwdt(void);
  43. void process_error_even(void);
  44. #endif