/* Change Logs: Date Author Notes  aozima the first version  */
static rt_err_t _pwm_control(rt_device_t dev, int cmd, void *args)
/* Change Logs: Date Author Notes  aozima the first version  */
static rt_err_t _pwm_control(rt_device_t dev, int cmd, void *args)
{
    rt_err_t result = RT_EOK;
    struct rt_device_pwm *pwm = (struct rt_device_pwm *)dev;
    if (pwm->ops->control)
    {
        result = pwm->ops->control(pwm, cmd, args);
    }
    return result;
}