3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
11 #ifdef CONFIG_BOOT_RETRY_TIME
13 * bootretry_tstc_timeout() - ensure we get a keypress before timeout
15 * Check for a keypress repeatedly, resetting the watchdog each time. If a
16 * keypress is not received within the command timeout, return an error.
18 * @return 0 if a key is received in time, -ETIMEDOUT if not
20 int bootretry_tstc_timeout(void);
23 * bootretry_init_cmd_timeout() - set up command timeout
25 * Get the required command timeout from the environment.
27 void bootretry_init_cmd_timeout(void);
30 * bootretry_reset_cmd_timeout() - reset command timeout
32 * Reset the command timeout so that the user has a fresh start. This is
33 * typically used when input is received from the user.
35 void bootretry_reset_cmd_timeout(void);
37 /** bootretry_dont_retry() - Indicate that we should not retry the boot */
38 void bootretry_dont_retry(void);
40 static inline int bootretry_tstc_timeout(void)
45 static inline void bootretry_init_cmd_timeout(void)
49 static inline void bootretry_reset_cmd_timeout(void)
53 static inline void bootretry_dont_retry(void)