Lines Matching +full:max +full:- +full:load +full:- +full:value
4 * SPDX-License-Identifier: Apache-2.0
21 /* offset: 0x000 (r/w) watchdog load register */
22 volatile uint32_t load; member
23 /* offset: 0x004 (r/ ) watchdog value register */
24 volatile uint32_t value; member
56 * Value written to the LOCK register to lock or unlock the write access
68 /* watchdog reload value in clock cycles */
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()
126 /* Reload value */ 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()
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()
198 /* set default reload value */ in wdog_cmsdk_apb_init()
199 wdog->load = reload_cycles; in wdog_cmsdk_apb_init()