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

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
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. kwork_level_close = 0, /*关闭PWM输出,关闭RGB*/
  15. kwork_level_low = 1, /*低档*/
  16. kwork_level_hight = 2, /*高档*/
  17. } work_level_t;
  18. typedef struct {
  19. bool fan_error_status; /*风扇电压异常*/
  20. bool way_circuit_error_status; /*总电压异常*/
  21. } error_state_t;
  22. // void Uart0Init(void);
  23. // void Uart0SendBuff(uint8_t *buff);
  24. // void port_do_debug_light_state(void);
  25. // void LedInit(void);
  26. void process_intervalkey_press_even(void);
  27. void update_interval_period_duty(uint8_t interval_duty);
  28. void restore_the_mode_before_intermittent_work(void);
  29. void process_rgb_flicker(void);
  30. void power_on_ozone_working_status(void);
  31. void update_ozone_work_level(work_level_t level);
  32. void process_levelkey_press_even(void);
  33. void shutdown(void);
  34. void starting_up(void);
  35. void process_powerkey(void);
  36. void updae_timing_light_state(void);
  37. void update_timing_time(void);
  38. void try_shutdown(void);
  39. bool timing_function_is_enable(void);
  40. void iwdt_init(void);
  41. void feed_iwdt(void);
  42. void process_error_even(void);
  43. #endif