/Zephyr-Core-3.7.0/drivers/watchdog/ |
D | wdt_ene_kb1200.c | 17 struct wdt_regs *wdt; member 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() 50 cfg->wdt->WDTCFG |= WDT_FUNCTON_ENABLE; in wdt_kb1200_setup() 60 if (!(cfg->wdt->WDTCFG & WDT_FUNCTON_ENABLE)) { in wdt_kb1200_disable() 64 cfg->wdt->WDTCFG = (cfg->wdt->WDTCFG & ~WDT_FUNCTON_ENABLE) | WDT_DISABLE_PASSWORD; in wdt_kb1200_disable() 66 cfg->wdt->WDTPF = (WDT_HALF_WAY_EVENT | WDT_RESET_EVENT); in wdt_kb1200_disable() 68 cfg->wdt->WDTIE &= ~WDT_HALF_WAY_EVENT; in wdt_kb1200_disable() 85 cfg->wdt->WDTM = (config->window.max * 1000) / WDT_TICK_TIME_US; in wdt_kb1200_install_timeout() [all …]
|
D | wdt_sifive.c | 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() 98 wdt->wdogcfg = t; in wdt_sifive_isr() [all …]
|
D | wdt_nrfx.c | 24 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() 128 err_code = nrfx_wdt_channel_alloc(&config->wdt, in wdt_nrf_install_timeout() 156 nrfx_wdt_channel_feed(&config->wdt, in wdt_nrf_feed() 187 #define WDT(idx) DT_NODELABEL(wdt##idx) 203 err_code = nrfx_wdt_init(&config->wdt, \ 214 .wdt = NRFX_WDT_INSTANCE(idx), \
|
D | wdt_sam.c | 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() 220 Wdt * const wdt = config->regs; in wdt_sam_feed() local 222 wdt->WDT_CR |= WDT_CR_KEY_PASSWD | WDT_CR_WDRSTT; in wdt_sam_feed()
|
D | wdt_esp32.c | 190 static struct wdt_esp32_data wdt##idx##_data; \ 193 .irq_source = DT_IRQN(DT_NODELABEL(wdt##idx)), \ 201 &wdt##idx##_data, \
|
/Zephyr-Core-3.7.0/tests/drivers/watchdog/wdt_error_cases/src/ |
D | main.c | 67 static const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); variable 127 ret = wdt_disable(wdt); in ZTEST() 147 ret = wdt_setup(wdt, DEFAULT_OPTIONS); in ZTEST() 167 ret = wdt_feed(wdt, 0); in ZTEST() 195 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 223 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 251 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 279 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 292 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 300 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/watchdog/wdt_basic_api/src/ |
D | test_wdt.c | 193 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() 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() 264 err = wdt_install_timeout(wdt, &m_cfg_wdt0); in test_wdt_callback_1() 276 err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG); in test_wdt_callback_1() 279 err = wdt_setup(wdt, 0); in test_wdt_callback_1() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/watchdog/wdt_basic_reset_none/src/ |
D | main.c | 44 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() 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() 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() 119 err = wdt_install_timeout(wdt, &m_cfg_wdt0); in test_wdt_bad_window_max()
|
/Zephyr-Core-3.7.0/samples/drivers/watchdog/src/ |
D | main.c | 85 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()
|
/Zephyr-Core-3.7.0/samples/boards/esp32/xt_wdt/src/ |
D | main.c | 20 const struct device *const wdt = DEVICE_DT_GET_ONE(espressif_esp32_xt_wdt); variable 37 if (!device_is_ready(wdt)) { in main() 55 wdt_install_timeout(wdt, &wdt_config); in main() 57 wdt_setup(wdt, 0); in main()
|
/Zephyr-Core-3.7.0/tests/drivers/build_all/watchdog/boards/ |
D | qemu_cortex_m3.overlay | 9 compatible = "xlnx,xps-timebase-wdt-1.00.a"; 12 xlnx,wdt-interval = <31>; 13 xlnx,wdt-enable-once = <1>;
|
/Zephyr-Core-3.7.0/subsys/task_wdt/ |
D | task_wdt_shell.c | 18 const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0)); in cmd_init() local 20 const struct device *const wdt = NULL; in cmd_init() local 25 int ret = task_wdt_init(wdt); in cmd_init()
|
/Zephyr-Core-3.7.0/boards/arduino/due/ |
D | arduino_due.dts | 18 watchdog0 = &wdt; 42 &wdt {
|
/Zephyr-Core-3.7.0/samples/drivers/watchdog/boards/ |
D | adp_xc7k_ae350.overlay | 9 watchdog0 = &wdt;
|
/Zephyr-Core-3.7.0/tests/drivers/watchdog/wdt_basic_api/boards/ |
D | nrf52840dk_nrf52840_counter.overlay | 18 wdt_counter: wdt-counter {
|
/Zephyr-Core-3.7.0/samples/shields/npm6001_ek/src/ |
D | main.c | 26 static const struct device *const wdt = DEVICE_DT_GET_ONE(nordic_npm6001_wdt); variable 54 if (!device_is_ready(wdt)) { in main() 425 ret = wdt_install_timeout(wdt, &cfg); in cmd_wdt_enable() 437 ret = wdt_disable(wdt); in cmd_wdt_disable() 449 ret = wdt_feed(wdt, 0); in cmd_wdt_kick() 503 SHELL_CMD(wdt, &sub_npm6001_wdt_cmds, "Watchdog",
|
/Zephyr-Core-3.7.0/samples/shields/npm6001_ek/doc/ |
D | index.rst | 157 The ``npm6001`` shell interface provides the ``wdt`` subcommand to test the 165 npm6001 wdt enable 8000 167 npm6001 wdt disable 169 npm6001 wdt kick
|
/Zephyr-Core-3.7.0/boards/atmel/sam/sam4e_xpro/ |
D | sam4e_xpro.dts | 22 wdog = &wdt; 23 watchdog0 = &wdt; 226 &wdt {
|
/Zephyr-Core-3.7.0/boards/shields/npm6001_ek/ |
D | npm6001_ek.overlay | 19 compatible = "nordic,npm6001-wdt";
|
/Zephyr-Core-3.7.0/boards/native/nrf_bsim/ |
D | nrf5340bsim_nrf5340_cpuapp.dts | 28 /delete-property/ wdt-0; 29 /delete-property/ wdt-1;
|
D | nrf5340bsim_nrf5340_cpunet.dts | 21 /delete-property/ wdt-0;
|
/Zephyr-Core-3.7.0/boards/atmel/sam/sam_e70_xplained/ |
D | sam_e70_xplained-common.dtsi | 19 watchdog0 = &wdt; 115 &wdt {
|
/Zephyr-Core-3.7.0/samples/subsys/task_wdt/ |
D | README.rst | 1 .. zephyr:code-sample:: task-wdt
|
/Zephyr-Core-3.7.0/boards/atmel/sam/sam4s_xplained/ |
D | sam4s_xplained.dts | 23 watchdog0 = &wdt; 193 &wdt {
|
/Zephyr-Core-3.7.0/dts/arm/atmel/ |
D | sam3x.dtsi | 13 watchdog0 = &wdt; 77 wdt: watchdog@400e1a50 { label
|