/* Change Logs: Date Author Notes  heyuanjie87 first version.  Bernard code cleanup This function initializes watchdog  */
static rt_err_t rt_watchdog_init(struct rt_device *dev)
/* Change Logs: Date Author Notes  heyuanjie87 first version.  Bernard code cleanup This function initializes watchdog  */
static rt_err_t rt_watchdog_init(struct rt_device *dev)
{
    rt_watchdog_t *wtd;
    RT_ASSERT(dev != RT_NULL);
    wtd = (rt_watchdog_t *)dev;
    if (wtd->ops->init)
    {
        return (wtd->ops->init(wtd));
    }
    return (-RT_ENOSYS);
}