drivers: watchdog: Watchdog API redesign
New API enables setting watchdog timeout in the unit of microseconds. It is possible to configure watchdog timer behavior in CPU sleep state as well as when it is halted by the debugger. It supports watchdogs with multiple reload channels. Jira: ZEP-2564 Signed-off-by: Michał Kruszewski <michal.kruszewski@nordicsemi.no> Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
This commit is contained in:
parent
aec465968c
commit
0c2ef4ea3d
10 changed files with 333 additions and 34 deletions
|
@ -37,10 +37,12 @@ static void wdt_sam0_enable(struct device *dev)
|
|||
wdt_sam0_wait_synchronization();
|
||||
}
|
||||
|
||||
static void wdt_sam0_disable(struct device *dev)
|
||||
static int wdt_sam0_disable(struct device *dev)
|
||||
{
|
||||
WDT_REGS->CTRL.reg = 0;
|
||||
wdt_sam0_wait_synchronization();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int wdt_sam0_set_config(struct device *dev, struct wdt_config *config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue