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.

40 lines
967 B

3 years ago
3 years ago
3 years ago
3 years ago
  1. #ifndef _pwm_module_H_
  2. #define _pwm_module_H_
  3. #include "lib_config.h"
  4. #include "light.h"
  5. #include "ozone_work.h"
  6. #include "port.h"
  7. #include "system_ES8P5066.h"
  8. typedef struct {
  9. uint32_t s_hardware_frequency; // ��λKhz���������ڵ�PWMƵ��
  10. uint32_t s_hardware_duty; // �������ڵ�PWMռ�ձ�
  11. uint32_t s_large_period; // ��λms���������ڵĶ�ʱ����
  12. uint32_t s_large_duty; // �������ڵĶ�ʱռ�ձ�
  13. } pwm_message_t;
  14. typedef struct {
  15. uint32_t hardware_frequency; // ��λKhz�������ػ�ǰ��PWMƵ��
  16. uint32_t hardware_duty; // �����ػ�ǰ��PWMռ�ձ�
  17. uint32_t large_period; // ��λms�������ػ�ǰ�Ķ�ʱ����
  18. uint32_t large_duty; // �����ػ�ǰ�Ķ�ʱռ�ձ�
  19. } shutdown_before_message_t;
  20. void t16_pa4_init(void);
  21. void set_pwm_modbul_freq_duty(uint32_t frequency, uint32_t duty);
  22. #endif
  23. // 2Сʱ
  24. // 50
  25. // 80
  26. // 3Сʱ
  27. // 1Сʱ
  28. // if(haspassed(beigin)/Сʱ%2<=1){
  29. // ��
  30. // }else{
  31. // }