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 
11 #ifndef DRIVERS_DRV_PWM_H_
12 #define DRIVERS_DRV_PWM_H_
13 #include <board.h>
14 #include "rtdevice.h"
15 
16 #ifdef BSP_USING_PWM
17 struct c28x_pwm
18 {
19     struct rt_device_pwm pwm_device;
20     volatile struct EPWM_REGS *pwm_regs;
21     const char *name;
22 };
23 
24 int c28x_pwm_init(void);
25 #endif /* BSP_USING_PWM */
26 #endif /* DRIVERS_DRV_PWM_H_ */
27