/Zephyr-latest/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_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() 227 static DEVICE_API(wdt, wdt_sam_api) = {
|
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() 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) 209 err_code = nrfx_wdt_init(&config->wdt, \ [all …]
|
D | wdt_esp32.c | 188 static DEVICE_API(wdt, wdt_api) = { 196 static struct wdt_esp32_data wdt##idx##_data; \ 199 .irq_source = DT_IRQ_BY_IDX(DT_NODELABEL(wdt##idx), 0, irq), \ 200 .irq_priority = DT_IRQ_BY_IDX(DT_NODELABEL(wdt##idx), 0, priority), \ 201 .irq_flags = DT_IRQ_BY_IDX(DT_NODELABEL(wdt##idx), 0, flags), \ 209 &wdt##idx##_data, \
|
D | wdt_rpi_pico.c | 175 static DEVICE_API(wdt, wdt_rpi_pico_driver_api) = { 193 DEVICE_DT_DEFINE(DT_NODELABEL(wdt##idx), wdt_rpi_pico_init, NULL, &wdt_##idx##_data, \
|
D | wdt_ti_tps382x.c | 77 static DEVICE_API(wdt, ti_tps382x_api) = {
|
D | wdt_smartbond.c | 117 static DEVICE_API(wdt, wdg_smartbond_api) = {
|
/Zephyr-latest/tests/drivers/watchdog/wdt_error_cases/src/ |
D | main.c | 68 static const struct device *const wdt = DEVICE_DT_GET(WDT_NODE); variable 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() 293 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() 301 ret = wdt_install_timeout(wdt, &m_cfg_wdt0); in ZTEST() [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/samples/boards/espressif/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-latest/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-latest/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-latest/tests/drivers/build_all/watchdog/ |
D | i2c_devices.overlay | 32 compatible = "nordic,npm6001-wdt"; 41 compatible = "nordic,npm2100-wdt";
|
/Zephyr-latest/boards/arduino/due/ |
D | arduino_due.dts | 18 watchdog0 = &wdt; 42 &wdt {
|
/Zephyr-latest/samples/drivers/watchdog/boards/ |
D | adp_xc7k_ae350.overlay | 9 watchdog0 = &wdt;
|
/Zephyr-latest/tests/drivers/watchdog/wdt_basic_api/boards/ |
D | nrf52840dk_nrf52840_counter.overlay | 18 wdt_counter: wdt-counter {
|
/Zephyr-latest/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-latest/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-latest/boards/atmel/sam/sam4e_xpro/ |
D | sam4e_xpro.dts | 22 wdog = &wdt; 23 watchdog0 = &wdt; 227 &wdt {
|
/Zephyr-latest/boards/shields/npm6001_ek/ |
D | npm6001_ek.overlay | 19 compatible = "nordic,npm6001-wdt";
|
/Zephyr-latest/boards/native/nrf_bsim/ |
D | nrf5340bsim_nrf5340_cpuapp.dts | 29 /delete-property/ wdt-0; 30 /delete-property/ wdt-1;
|
/Zephyr-latest/boards/atmel/sam/sam_e70_xplained/ |
D | sam_e70_xplained-common.dtsi | 19 watchdog0 = &wdt; 115 &wdt {
|