94221bbdd8
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d 2. 新增adc驱动与kconfig配置
27 lines
526 B
C
27 lines
526 B
C
/*
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2022-09-24 qiyu first version
|
|
*/
|
|
|
|
#ifndef DRIVERS_DRV_PWM_H_
|
|
#define DRIVERS_DRV_PWM_H_
|
|
#include <board.h>
|
|
#include "rtdevice.h"
|
|
|
|
#ifdef BSP_USING_PWM
|
|
struct c28x_pwm
|
|
{
|
|
struct rt_device_pwm pwm_device;
|
|
volatile struct EPWM_REGS *pwm_regs;
|
|
const char *name;
|
|
};
|
|
|
|
int c28x_pwm_init(void);
|
|
#endif /* BSP_USING_PWM */
|
|
#endif /* DRIVERS_DRV_PWM_H_ */
|