drv_pwm.h 526 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-09-24 qiyu first version
  9. */
  10. #ifndef DRIVERS_DRV_PWM_H_
  11. #define DRIVERS_DRV_PWM_H_
  12. #include <board.h>
  13. #include "rtdevice.h"
  14. #ifdef BSP_USING_PWM
  15. struct c28x_pwm
  16. {
  17. struct rt_device_pwm pwm_device;
  18. volatile struct EPWM_REGS *pwm_regs;
  19. const char *name;
  20. };
  21. int c28x_pwm_init(void);
  22. #endif /* BSP_USING_PWM */
  23. #endif /* DRIVERS_DRV_PWM_H_ */