Home
last modified time | relevance | path

Searched full:wdt (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/Zephyr-latest/drivers/watchdog/
Dwdt_ene_kb1200.c13 #include <reg/wdt.h>
17 struct wdt_regs *wdt; member
26 /* WDT api functions */
33 printk("No valid WDT timeout installed"); in wdt_kb1200_setup()
43 cfg->wdt->WDTCFG = WDT_ADCO32K; in wdt_kb1200_setup()
45 cfg->wdt->WDTCFG = WDT_PHER32K; in wdt_kb1200_setup()
48 cfg->wdt->WDTPF = (WDT_HALF_WAY_EVENT | WDT_RESET_EVENT); in wdt_kb1200_setup()
49 /* WDT enable */ in wdt_kb1200_setup()
50 cfg->wdt->WDTCFG |= WDT_FUNCTON_ENABLE; in wdt_kb1200_setup()
60 if (!(cfg->wdt->WDTCFG & WDT_FUNCTON_ENABLE)) { in wdt_kb1200_disable()
[all …]
Dwdt_sifive.c8 * @brief Watchdog (WDT) Driver for SiFive Freedom
74 volatile struct wdt_sifive_reg *wdt = DEV_REG(dev); in wdt_sifive_set_max_timeout() local
77 t = wdt->wdogcfg; in wdt_sifive_set_max_timeout()
80 wdt->wdogkey = WDOG_KEY; in wdt_sifive_set_max_timeout()
81 wdt->wdogcfg = t; in wdt_sifive_set_max_timeout()
82 wdt->wdogkey = WDOG_KEY; in wdt_sifive_set_max_timeout()
83 wdt->wdogcmp0 = WDOGCMP_MAX; in wdt_sifive_set_max_timeout()
88 volatile struct wdt_sifive_reg *wdt = DEV_REG(dev); in wdt_sifive_isr() local
94 t = wdt->wdogcfg; in wdt_sifive_isr()
97 wdt->wdogkey = WDOG_KEY; in wdt_sifive_isr()
[all …]
Dwdt_sam.c10 * @brief Watchdog (WDT) Driver for Atmel SAM MCUs
15 * - Since the MCU boots with WDT enabled, the CONFIG_WDT_DISABLE_AT_BOOT
35 Wdt *regs;
51 Wdt * const wdt = config->regs; in wdt_sam_isr() local
55 wdt_sr = wdt->WDT_SR; in wdt_sam_isr()
87 Wdt * const wdt = config->regs; in wdt_sam_disable() local
102 wdt->WDT_MR |= WDT_MR_WDDIS; in wdt_sam_disable()
112 Wdt * const wdt = config->regs; in wdt_sam_setup() local
136 wdt->WDT_MR = data->mode; in wdt_sam_setup()
174 wdt_mode = WDT_MR_WDRSTEN; /* WDT reset enable */ in wdt_sam_install_timeout()
[all …]
DKconfig.nrfx1 # nrfx WDT support
7 bool "nRF WDT nrfx driver"
20 Enable support for nrfx WDT driver for nRF MCU series.
23 bool "nRF WDT nrfx driver without IRQ enabled"
26 Disable use of WDT interrupt in driver.
DKconfig.xlnx7 bool "Xilinx AXI Timebase WDT driver"
11 Enable the Xilinx AXI Timebase WDT driver.
16 bool "Expose HWINFO API in Xilinx AXI Timebase WDT driver"
20 Controls whether the Xilinx AXI Timebase WDT driver exposes a HWINFO
21 API which allows determining whether the WDT initiated the last
DKconfig.esp321 # ESP32 WDT configuration
7 bool "ESP32 Watchdog (WDT) Driver"
12 Enable WDT driver for ESP32.
19 Enable WDT driver for ESP32.
Dwdt_nrfx.c24 nrfx_wdt_t wdt; member
49 err_code = nrfx_wdt_reconfigure(&config->wdt, &wdt_config); in wdt_nrf_setup()
55 nrfx_wdt_enable(&config->wdt); in wdt_nrf_setup()
69 err_code = nrfx_wdt_stop(&config->wdt); in wdt_nrf_disable()
76 nrfx_wdt_channels_free(&config->wdt); in wdt_nrf_disable()
129 err_code = nrfx_wdt_channel_alloc(&config->wdt, in wdt_nrf_install_timeout()
157 nrfx_wdt_channel_feed(&config->wdt, in wdt_nrf_feed()
163 static DEVICE_API(wdt, wdt_nrfx_driver_api) = {
188 #define WDT(idx) DT_NODELABEL(wdt##idx) macro
193 (IRQ_CONNECT(DT_IRQN(WDT(idx)), DT_IRQ(WDT(idx), priority), \
[all …]
DKconfig.litex1 # LiteX WDT configuration
7 bool "LiteX Watchdog (WDT) Driver"
12 Enable WDT driver for LiteX.
DKconfig.sifive1 # SiFive Freedom WDT configuration
7 bool "SiFive Watchdog (WDT) Driver"
12 This option enables WDT driver for SiFive Freedom.
DKconfig.sam01 # Atmel SAM0 WDT configuration
7 bool "Atmel SAM0 series Watchdog (WDT) Driver"
12 Enable WDT driver for Atmel SAM0 MCUs.
DKconfig.ambiq1 # Ambiq SDK WDT
8 bool "AMBIQ WDT driver"
14 Enable driver for Ambiq WDT.
DKconfig.sam1 # Atmel SAM WDT configuration
7 bool "Atmel SAM MCU Family Watchdog (WDT) Driver"
12 Enable WDT driver for Atmel SAM MCUs.
DKconfig.xmc4xxx1 # Infineon XMC4xxx WDT configuration
7 bool "Infineon XMC4xxx MCU Family Watchdog (WDT) Driver"
12 Enable WDT driver for Infineon XMC4xxx MCUs.
Dwdt_ite_it8xxx2.c25 /* wdt register base address */
85 LOG_ERR("No valid WDT timeout installed"); in wdt_it8xxx2_setup()
90 LOG_ERR("WDT is already running"); in wdt_it8xxx2_setup()
130 LOG_DBG("WDT Setup and enabled"); in wdt_it8xxx2_setup()
136 * reload the WDT and pre-warning timer1 counter
172 LOG_DBG("WDT Kicking"); in wdt_it8xxx2_feed()
195 LOG_DBG("WDT Disabled"); in wdt_it8xxx2_disable()
236 LOG_DBG("WDT ISR"); in wdt_it8xxx2_isr()
239 static DEVICE_API(wdt, wdt_it8xxx2_api) = {
258 /* set WDT and timer1 to use 1.024kHz clock */ in wdt_it8xxx2_init()
[all …]
DKconfig.shell5 bool "Watchdog (WDT) shell"
8 Enable WDT shell.
Dwdt_mchp_xec.c45 LOG_ERR("No valid WDT timeout installed"); in wdt_xec_setup()
62 LOG_DBG("WDT Setup and enabled"); in wdt_xec_setup()
80 LOG_DBG("WDT Disabled"); in wdt_xec_disable()
108 LOG_DBG("WDT callback enabled"); in wdt_xec_install_timeout()
116 LOG_DBG("WDT Reset enabled"); in wdt_xec_install_timeout()
142 LOG_DBG("WDT Kicking"); in wdt_xec_feed()
155 LOG_DBG("WDT ISR"); in wdt_xec_isr()
169 static DEVICE_API(wdt, wdt_xec_api) = {
/Zephyr-latest/tests/drivers/watchdog/wdt_error_cases/src/
Dmain.c68 static const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); variable
71 /* Following variables are incremented in WDT callbacks
127 /* Call wdt_disable before enabling wdt */ in ZTEST()
128 ret = wdt_disable(wdt); in ZTEST()
148 ret = wdt_setup(wdt, DEFAULT_OPTIONS); in ZTEST()
168 ret = wdt_feed(wdt, 0); in ZTEST()
196 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST()
224 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST()
252 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST()
280 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/watchdog/wdt_basic_reset_none/src/
Dmain.c44 const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); in test_wdt_callback_reset_none() local
46 if (!device_is_ready(wdt)) { in test_wdt_callback_reset_none()
47 TC_PRINT("WDT device is not ready\n"); in test_wdt_callback_reset_none()
56 err = wdt_install_timeout(wdt, &m_cfg_wdt0); in test_wdt_callback_reset_none()
65 err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG); in test_wdt_callback_reset_none()
76 wdt_feed(wdt, 0); in test_wdt_callback_reset_none()
91 "wdt callback failed"); in test_wdt_callback_reset_none()
93 err = wdt_disable(wdt); in test_wdt_callback_reset_none()
108 const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); in test_wdt_bad_window_max() local
110 if (!device_is_ready(wdt)) { in test_wdt_bad_window_max()
[all …]
/Zephyr-latest/dts/bindings/watchdog/
Dxlnx,xps-timebase-wdt-1.00.a.yaml4 description: Xilinx AXI timebase WDT core
6 compatible: "xlnx,xps-timebase-wdt-1.00.a"
18 xlnx,wdt-interval:
24 xlnx,wdt-enable-once:
25 description: Indicates whether WDT can only be enabled once and not disabled
/Zephyr-latest/samples/boards/espressif/xt_wdt/src/
Dmain.c20 const struct device *const wdt = DEVICE_DT_GET_ONE(espressif_esp32_xt_wdt); variable
24 printk("XT WDT callback\n"); in wdt_callback()
37 if (!device_is_ready(wdt)) { in main()
38 LOG_ERR("XT WDT device is not ready"); in main()
42 LOG_INF("XT WDT Sample on %s", CONFIG_BOARD_TARGET); in main()
55 wdt_install_timeout(wdt, &wdt_config); in main()
57 wdt_setup(wdt, 0); in main()
/Zephyr-latest/tests/drivers/watchdog/wdt_basic_api/src/
Dtest_wdt.c193 const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); in test_wdt_no_callback() local
195 if (!device_is_ready(wdt)) { in test_wdt_no_callback()
196 TC_PRINT("WDT device is not ready\n"); in test_wdt_no_callback()
212 err = wdt_install_timeout(wdt, &m_cfg_wdt0); in test_wdt_no_callback()
218 err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG); in test_wdt_no_callback()
221 err = wdt_setup(wdt, 0); in test_wdt_no_callback()
240 const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); in test_wdt_callback_1() local
242 if (!device_is_ready(wdt)) { in test_wdt_callback_1()
243 TC_PRINT("WDT device is not ready\n"); in test_wdt_callback_1()
264 err = wdt_install_timeout(wdt, &m_cfg_wdt0); in test_wdt_callback_1()
[all …]
/Zephyr-latest/samples/boards/espressif/xt_wdt/
DREADME.rst1 .. zephyr:code-sample:: esp32-xt-wdt
2 :name: XTAL32K Watchdog Timer (WDT)
9 This sample shows how to work with XTAL32K Watchdog Timer (XT WDT) peripheral.
14 the XT WDT interrupt. Internally the hardware switch the RTC SLOW clock source from
21 The following SoCs supports the XT WDT peripheral:
56 [00:00:01.287,000] <inf> xt_wdt_sample: XT WDT Sample on esp32s3_devkitm/esp32s3/procpu
59 XT WDT callback
/Zephyr-latest/tests/drivers/build_all/watchdog/boards/
Dqemu_cortex_m3.overlay9 compatible = "xlnx,xps-timebase-wdt-1.00.a";
12 xlnx,wdt-interval = <31>;
13 xlnx,wdt-enable-once = <1>;
/Zephyr-latest/soc/microchip/mec/common/reg/
Dmec_wdt.h33 * WDT mode selecting action taken upon count expiration.
38 * Kick WDT causing it to reload from LOAD register
40 * to the WDT ISR.
47 /* WDT Kick register. Write any value to reload counter */
52 /* WDT Count register. Read only */
/Zephyr-latest/samples/drivers/watchdog/src/
Dmain.c85 const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0)); in main() local
89 if (!device_is_ready(wdt)) { in main()
90 printk("%s: device not ready.\n", wdt->name); in main()
112 wdt_channel_id = wdt_install_timeout(wdt, &wdt_config); in main()
117 wdt_channel_id = wdt_install_timeout(wdt, &wdt_config); in main()
124 err = wdt_setup(wdt, WDT_OPT); in main()
138 wdt_feed(wdt, wdt_channel_id); in main()

12345678910>>...13