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:
Karol Lasończyk 2018-07-18 15:47:31 +02:00 committed by Anas Nashif
commit e482feac9d

View file

@ -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)