Home
last modified time | relevance | path

Searched refs:wdt (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-Core-3.7.0/drivers/watchdog/
Dwdt_ene_kb1200.c17 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 …]
Dwdt_sifive.c74 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 …]
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()
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), \
Dwdt_sam.c51 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()
Dwdt_esp32.c190 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/
Dmain.c67 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/
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()
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/
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()
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/
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()
/Zephyr-Core-3.7.0/samples/boards/esp32/xt_wdt/src/
Dmain.c20 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/
Dqemu_cortex_m3.overlay9 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/
Dtask_wdt_shell.c18 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/
Darduino_due.dts18 watchdog0 = &wdt;
42 &wdt {
/Zephyr-Core-3.7.0/samples/drivers/watchdog/boards/
Dadp_xc7k_ae350.overlay9 watchdog0 = &wdt;
/Zephyr-Core-3.7.0/tests/drivers/watchdog/wdt_basic_api/boards/
Dnrf52840dk_nrf52840_counter.overlay18 wdt_counter: wdt-counter {
/Zephyr-Core-3.7.0/samples/shields/npm6001_ek/src/
Dmain.c26 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/
Dindex.rst157 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/
Dsam4e_xpro.dts22 wdog = &wdt;
23 watchdog0 = &wdt;
226 &wdt {
/Zephyr-Core-3.7.0/boards/shields/npm6001_ek/
Dnpm6001_ek.overlay19 compatible = "nordic,npm6001-wdt";
/Zephyr-Core-3.7.0/boards/native/nrf_bsim/
Dnrf5340bsim_nrf5340_cpuapp.dts28 /delete-property/ wdt-0;
29 /delete-property/ wdt-1;
Dnrf5340bsim_nrf5340_cpunet.dts21 /delete-property/ wdt-0;
/Zephyr-Core-3.7.0/boards/atmel/sam/sam_e70_xplained/
Dsam_e70_xplained-common.dtsi19 watchdog0 = &wdt;
115 &wdt {
/Zephyr-Core-3.7.0/samples/subsys/task_wdt/
DREADME.rst1 .. zephyr:code-sample:: task-wdt
/Zephyr-Core-3.7.0/boards/atmel/sam/sam4s_xplained/
Dsam4s_xplained.dts23 watchdog0 = &wdt;
193 &wdt {
/Zephyr-Core-3.7.0/dts/arm/atmel/
Dsam3x.dtsi13 watchdog0 = &wdt;
77 wdt: watchdog@400e1a50 { label

123