7 #ifndef LINUX_LIBV2_SOURCE_TQPWM_TQ_PWM_H_ 8 #define LINUX_LIBV2_SOURCE_TQPWM_TQ_PWM_H_ 13 #define PWM_API extern "C"
PWM_API int tq_pwm_test()
测试pwm_enable()和tq_set_pwm()这两个函数
PWM_API int tq_set_pwm(int node, unsigned long period, unsigned long duty_cycle)
设置 PWM 的周期、占空比
PWM_API int tq_pwm_enable(int node, int enable)
PWM 开启/关闭