1 /* 2 * Copyright (c) 2006-2021, 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 11 #ifndef __DRV_PWM_H__ 12 #define __DRV_PWM_H__ 13 14 #include <stdint.h> 15 #include<rtdevice.h> 16 #include<rthw.h> 17 18 struct tm4c123_pwm 19 { 20 struct tm4c123_pwm_config *config; 21 struct rt_device_pwm pwm_device; 22 }; 23 24 /* tm4c123 config class */ 25 struct tm4c123_pwm_config 26 { 27 rt_uint8_t channel; 28 char *name; 29 uint32_t counterMode; 30 uint32_t syncMode; 31 }; 32 33 int rt_hw_pwm_init(void); 34 35 #endif /*__DRV_PWM_H__*/ 36 37 /************************** end of file ******************/ 38