1 2 3 4 5 6 7 8 9 10 11
#ifndef _PWM_H #define _PWM_H extern void pwm_freq_set(int channel, u_int32_t freq); extern void pwm_start(int channel); extern void pwm_stop(int channel); extern void pwm_duty(int channel, u_int16_t duty); extern void pwm_init(void); extern void pwm_fini(void); #endif