/* Change Logs: Date Author Notes  balanceTWK the first version  */
static rt_err_t rt_pulse_encoder_init(struct rt_device *dev)
/* Change Logs: Date Author Notes  balanceTWK the first version  */
static rt_err_t rt_pulse_encoder_init(struct rt_device *dev)
{
    struct rt_pulse_encoder_device *pulse_encoder;
    pulse_encoder = (struct rt_pulse_encoder_device *)dev;
    if (pulse_encoder->ops->init)
    {
        return pulse_encoder->ops->init(pulse_encoder);
    }
    else
    {
        return -RT_ENOSYS;
    }
}