timer 指定timer输出pwm
timer_id -- 定时器号(0-5)
port -- PWM输出管脚
period_ns -- PWM周期
duty_ns -- 高电平时间
成功
失败
pwm使能是否成功