drv_pwm.h 660 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-06-27 AHTYDHD the first version
  9. */
  10. #ifndef __DRV_PWM_H__
  11. #define __DRV_PWM_H__
  12. #include<rtdevice.h>
  13. #include<rthw.h>
  14. struct tm4c123_pwm
  15. {
  16. struct tm4c123_pwm_config *config;
  17. struct rt_device_pwm pwm_device;
  18. };
  19. /* tm4c123 config class */
  20. struct tm4c123_pwm_config
  21. {
  22. rt_uint8_t channel;
  23. char *name;
  24. uint32_t counterMode;
  25. uint32_t syncMode;
  26. };
  27. int rt_hw_pwm_init(void);
  28. #endif /*__DRV_PWM_H__*/
  29. /************************** end of file ******************/