drivers: watchdog: Align nrf wdt driver to new nrfx
New nrfx version brings fixes also in watchdog implementation. Previously introduced workaround for supporting more than one channel can be changed to driver-management solution. Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
This commit is contained in:
parent
f6349c88af
commit
e482feac9d
1 changed files with 2 additions and 7 deletions
|
@ -50,13 +50,8 @@ static void wdt_event_handler(void)
|
||||||
static void wdt_nrf_isr(struct device *dev)
|
static void wdt_nrf_isr(struct device *dev)
|
||||||
{
|
{
|
||||||
ARG_UNUSED(dev);
|
ARG_UNUSED(dev);
|
||||||
/* We need to implement our own interrupt handler until nrfx one will
|
|
||||||
* be fixed.
|
nrfx_wdt_irq_handler();
|
||||||
* Clearing events also clears the reload register and has to be done
|
|
||||||
* AFTER event handler.
|
|
||||||
*/
|
|
||||||
wdt_event_handler();
|
|
||||||
nrf_wdt_event_clear(NRF_WDT_EVENT_TIMEOUT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int wdt_nrf_setup(struct device *dev, u8_t options)
|
static int wdt_nrf_setup(struct device *dev, u8_t options)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue