Hello Zephyr experts,
I am having problem with the function wdt_disable(const struct device *dev);
There is no problem in setup and feed the watchdog.
wdt = device_get_binding(WDT); // watchdog device binding succesfully
}
This is what I found from
zephyr/misc/generated/syscalls_links/include/drivers/watchdog.h
/**
* @brief Disable watchdog instance.
*
* This function disables the watchdog instance and automatically uninstalls all
* timeouts. To set up a new watchdog, install timeouts and call wdt_setup()
* again. Not all watchdogs can be restarted after they are disabled.
*
* @param dev Pointer to the device structure for the driver instance.
*
* @retval 0 If successful.
* @retval -EFAULT If watchdog instance is not enabled.
* @retval -EPERM If watchdog can not be disabled directly by application code.
*/
__syscall int wdt_disable(const struct device *dev);
static inline int z_impl_wdt_disable(const struct device *dev)
{
const struct wdt_driver_api *api =
(const struct wdt_driver_api *)dev->api;
return api->disable(dev);
}