mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 00:26:16 +00:00
This adds basic support for the watchdog timer on the RP2040 MCU and Raspberry Pi Pico development board Signed-off-by: Jamie McCrae <spam@helper3000.net>
21 lines
688 B
Plaintext
21 lines
688 B
Plaintext
# Copyright (c) 2022, Jamie McCrae
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
DT_COMPAT_RASPBERRYPI_PICO_WATCHDOG := raspberrypi,pico-watchdog
|
|
|
|
config WDT_RPI_PICO
|
|
bool "Raspberry Pi Pico Watchdog driver"
|
|
default $(dt_compat_enabled,$(DT_COMPAT_RASPBERRYPI_PICO_WATCHDOG))
|
|
depends on SOC_FAMILY_RPI_PICO
|
|
|
|
config WDT_RPI_PICO_INITIAL_TIMEOUT
|
|
int "Default watchdog timeout in us"
|
|
depends on WDT_RPI_PICO
|
|
default 8388607
|
|
range 1 8388607
|
|
help
|
|
Sets the default watchdog timeout at start-up, the feed function must
|
|
be called every interval prior to this time elapsing to prevent a
|
|
reboot of the module. The default is just over 8 seconds, which is the
|
|
largest timeout possible.
|