Lines Matching +full:interrupt +full:- +full:nmi
4 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/arch/arm/nmi.h>
27 /* offset: 0x00c ( /w) watchdog clear interrupt register */
29 /* offset: 0x010 (r/ ) watchdog raw interrupt status register */
31 /* offset: 0x014 (r/ ) watchdog interrupt status register */
81 wdog->lock = CMSDK_APB_WDOG_UNLOCK_VALUE; in wdog_cmsdk_apb_unlock()
92 wdog->ctrl = (CMSDK_APB_WDOG_CTRL_RESEN | CMSDK_APB_WDOG_CTRL_INTEN); in wdog_cmsdk_apb_setup()
104 wdog->ctrl = ~(CMSDK_APB_WDOG_CTRL_RESEN | CMSDK_APB_WDOG_CTRL_INTEN); in wdog_cmsdk_apb_disable()
119 if (config->window.max == 0) { in wdog_cmsdk_apb_install_timeout()
120 return -EINVAL; in wdog_cmsdk_apb_install_timeout()
123 return -ENOMEM; in wdog_cmsdk_apb_install_timeout()
127 reload_cycles = config->window.max * clk_freq_khz; in wdog_cmsdk_apb_install_timeout()
128 flags = config->flags; in wdog_cmsdk_apb_install_timeout()
130 wdog->load = reload_cycles; in wdog_cmsdk_apb_install_timeout()
133 user_cb = config->callback; in wdog_cmsdk_apb_install_timeout()
146 /* Clear the interrupt */ in wdog_cmsdk_apb_feed()
147 wdog->intclr = CMSDK_APB_WDOG_INTCLR; in wdog_cmsdk_apb_feed()
150 wdog->load = reload_cycles; in wdog_cmsdk_apb_feed()
168 return (wdog->maskintstat & CMSDK_APB_WDOG_MASKINTSTAT) != 0U; in wdog_cmsdk_apb_has_fired()
174 * Check if the watchdog was the reason of the NMI interrupt in wdog_cmsdk_apb_isr()
178 printk("NMI received! Rebooting...\n"); in wdog_cmsdk_apb_isr()
199 wdog->load = reload_cycles; in wdog_cmsdk_apb_init()