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.

28 lines
827 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 "port.h"
  6. #include "system_ES8P5066.h"
  7. typedef struct {
  8. uint32_t s_hardware_frequency; // ��λKhz���������ڵ�PWMƵ��
  9. uint32_t s_hardware_duty; // �������ڵ�PWMռ�ձ�
  10. uint32_t s_large_period; // ��λms���������ڵĶ�ʱ����
  11. uint32_t s_large_duty; // �������ڵĶ�ʱռ�ձ�
  12. } pwm_message_t;
  13. typedef struct {
  14. uint32_t hardware_frequency; // ��λKhz�������ػ�ǰ��PWMƵ��
  15. uint32_t hardware_duty; // �����ػ�ǰ��PWMռ�ձ�
  16. uint32_t large_period; // ��λms�������ػ�ǰ�Ķ�ʱ����
  17. uint32_t large_duty; // �����ػ�ǰ�Ķ�ʱռ�ձ�
  18. } shutdown_before_message_t;
  19. void t16_pa4_init(void);
  20. void set_pwm_modbul_freq_duty(uint32_t frequency, uint32_t duty);
  21. #endif