/* Change Logs: Date Author Notes  balanceTWK the first version  */
static rt_err_t rt_inputcapture_init(struct rt_device *dev)
/* Change Logs: Date Author Notes  balanceTWK the first version  */
static rt_err_t rt_inputcapture_init(struct rt_device *dev)
{
    rt_err_t ret;
    struct rt_inputcapture_device *inputcapture;
    RT_ASSERT(dev != RT_NULL);
    ret = RT_EOK;
    inputcapture = (struct rt_inputcapture_device *)dev;
    inputcapture->watermark = RT_INPUT_CAPTURE_RB_SIZE / 2;
    if (inputcapture->ops->init)
    {
        ret = inputcapture->ops->init(inputcapture);
    }
    return ret;
}