drivers: wdt_nrfx: Add multi-instance support

Update the driver to support multiple watchdog instances
and add the corresponding Kconfig options.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Karol Lasończyk 2019-10-14 12:33:33 +02:00 committed by Carles Cufí
commit ec2a401bf3
2 changed files with 97 additions and 61 deletions

View file

@ -10,3 +10,16 @@ config WDT_NRFX
select NRFX_WDT
help
Enable support for nrfx WDT driver for nRF MCU series.
config NRFX_WDT0
bool "Enable WDT0 instance"
depends on HAS_HW_NRF_WDT || HAS_HW_NRF_WDT0
default y
help
Enable support for nrfx WDT instance 0.
config NRFX_WDT1
bool "Enable WDT1 instance"
depends on HAS_HW_NRF_WDT1
help
Enable support for nrfx WDT instance 1.