zephyr/drivers/watchdog/Kconfig.mcux
Declan Snyder dbbdd3c6cf drivers: wdt_mcux_wwdt: Fix warning callback
Warning callback by default is configured to happen
at the same time as reset, which results in unexpected
behavior from the point of view of Zephyr API. Return
-ENOTSUP from install_timeout if trying to set up
callback with 0 warning time, and add kconfig to configure
the warning time.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2023-09-13 09:16:33 +02:00

40 lines
852 B
Plaintext

# Watchdog configuration options
# Copyright (c) 2018, NXP
# SPDX-License-Identifier: Apache-2.0
config WDT_MCUX_WDOG
bool "MCUX WDOG driver"
default y
depends on DT_HAS_NXP_KINETIS_WDOG_ENABLED
depends on CLOCK_CONTROL
help
Enable the mcux wdog driver.
config WDT_MCUX_WDOG32
bool "MCUX WDOG32 driver"
default y
depends on DT_HAS_NXP_KINETIS_WDOG32_ENABLED
depends on CLOCK_CONTROL
help
Enable the mcux wdog32 driver.
config WDT_MCUX_WWDT
bool "MCUX WWDT driver"
default y
depends on DT_HAS_NXP_LPC_WWDT_ENABLED
help
Enable the mcux wwdt driver.
if WDT_MCUX_WWDT
config WDT_MCUX_WWDT_WARNING_INTERRUPT_CFG
int "WWDT timeout warning interrupt configuration"
range 0 1023
default 0
help
WWDT timeout warning interrupt time. The units are
the number of watchdog counter ticks before timeout.
endif # WDT_MCUX_WWDT