Lines Matching +full:stm32 +full:- +full:window +full:- +full:watchdog
7 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/drivers/watchdog.h>
42 #define WDG_FEED_INTERVAL (WDT_MIN_WINDOW + ((WDT_MAX_WINDOW - WDT_MIN_WINDOW) / 4))
87 printk("Watchdog sample application\n"); in main()
90 printk("%s: device not ready.\n", wdt->name); in main()
95 /* Reset SoC when watchdog timer expires. */ in main()
98 /* Expire watchdog after max window */ in main()
99 .window.min = WDT_MIN_WINDOW, in main()
100 .window.max = WDT_MAX_WINDOW, in main()
104 /* Set up watchdog callback. */ in main()
107 printk("Attempting to test pre-reset callback\n"); in main()
113 if (wdt_channel_id == -ENOTSUP) { in main()
114 /* IWDG driver for STM32 doesn't support callback */ in main()
120 printk("Watchdog install error\n"); in main()
126 printk("Watchdog setup error\n"); in main()
131 /* Wait opening window. */ in main()
134 /* Feeding watchdog. */ in main()
135 printk("Feeding watchdog %d times\n", WDT_FEED_TRIES); in main()
137 printk("Feeding watchdog...\n"); in main()