Lines Matching +full:timeout +full:- +full:period

1 /* SPDX-License-Identifier: Apache-2.0 */
19 * and programmed based on user-defined options.
57 * by the time a second timeout occurs then generate a system reset
82 * Timeout Range Register
104 * Timeout period
109 * Timeout period for initialization
116 * bits WDT_CNT_WIDTH - 1 to 0
155 * Upper limit of Timeout Period parameters
163 * Upper limit of Initial Timeout Period parameters
195 * Describes the initial timeout period that is available directly after reset. It controls the
196 * reset value of the register. If WDT_HC_TOP is 1, then the default initial time period is the
197 * only possible period.
202 * Selects the timeout period that is available directly after reset. It controls the reset value
203 * of the register. If WDT_HC_TOP is set to 1, then the default timeout period is the only possible
204 * timeout period. Can choose one of 16 values.
240 * When this parameter is set to 1, timeout period range is fixed. The range increments by the power
241 * of 2 from 2^16 to 2^(WDT_CNT_WIDTH-1). When this parameter is set to 0, the user must define the
242 * timeout period range (2^8 to 2^(WDT_CNT_WIDTH)-1) using the WDT_USER_TOP_(i) parameter.
247 * When set to 1, the selected timeout period(s)
262 * When set to 1, includes a second timeout period that is used for initialization prior to the
295 * followed by a 16-bit unsigned number.
316 * Selects whether watchdog should generate interrupt on the first timeout (true) or reset system
323 * timeout occurs then generate a system reset
355 * @brief Set timeout period.
358 * @param timeout_period Timeout period value selector
362 uint32_t timeout = sys_read32(base + WDT_TORR); in dw_wdt_timeout_period_set() local
364 timeout &= ~WDT_TORR_TOP; in dw_wdt_timeout_period_set()
365 timeout |= FIELD_PREP(WDT_TORR_TOP, timeout_period); in dw_wdt_timeout_period_set()
366 sys_write32(timeout, base + WDT_TORR); in dw_wdt_timeout_period_set()
370 * @brief Get actual timeout period range.
373 * @return Actual timeout period range
381 * @brief Timeout period for initialization.
384 * @param timeout_period Timeout period value selector
389 uint32_t timeout = sys_read32(base + WDT_TORR); in dw_wdt_timeout_period_init_set() local
391 timeout &= ~WDT_TORR_TOP_INIT; in dw_wdt_timeout_period_init_set()
392 timeout |= FIELD_PREP(WDT_TORR_TOP_INIT, timeout_period); in dw_wdt_timeout_period_init_set()
393 sys_write32(timeout, base + WDT_TORR); in dw_wdt_timeout_period_init_set()
408 current_counter_value &= (1 << (wdt_counter_width - 1)); in dw_wdt_current_counter_value_register_get()
449 * @brief Gets the upper limit of Timeout Period parameters.
452 * @return Upper limit of Timeout Period parameters.
460 * @brief Gets the Upper limit of Initial Timeout Period parameters.
463 * @return Upper limit of Initial Timeout Period parameters.
471 * @brief Get the default value of the timeout range that is selected after reset.
474 * @return Default timeout range after reset
482 * @brief Get the default value of the timeout counter that is set after reset.
485 * @return Default timeout counter value
504 * @brief Describes the initial timeout period that is available directly after reset.
507 * period is the only possible period.
510 * @return Initial timeout period
518 * @brief Get default timeout period
520 * Selects the timeout period that is available directly after reset. It controls the reset value
521 * of the register. If WDT_HC_TOP is set to 1, then the default timeout period is the only possible
522 * timeout period. Can choose one of 16 values.
525 * @return Default timeout period
573 * @brief Get fixed period status
575 * When this parameter is set to 1, timeout period range is fixed. The range increments by the power
576 * of 2 from 2^16 to 2^(WDT_CNT_WIDTH-1). When this parameter is set to 0, the user must define the
577 * timeout period range (2^8 to 2^(WDT_CNT_WIDTH)-1) using the WDT_USER_TOP_(i) parameter.
580 * @return 0x0 (USERDEFINED): User must define timeout values
581 * 0x1 (PREDEFINED): Use predefined timeout values
589 * @brief Checks if period is hardcoded
591 * When set to 1, the selected timeout period(s) is set to be hard coded.
594 * @return 0x0 (PROGRAMMABLE): Timeout period is programmable
595 * 0x1 (HARDCODED): Timeout period is hard coded
627 * @brief Checks if a second timeout period if supported.
629 * When set to 1, includes a second timeout period that is used for initialization prior to the
633 * @return 0x0 (DISABLED): Second timeout period is not present
634 * 0x1 (ENABLED): Second timeout period is present