autoboot.c
autoboot_command 自动启动命令
1 | void autoboot_command(const char *s) |
abortboot 检查是否有按键中断
1 | static int abortboot(int bootdelay) |
passwd_abort_key
- 输入
bootdelaykey或者bootstopkey中的任意一个按键,则返回1;终止自动启动 bootdelaykey的匹配字符串为env中的bootdelaykey的值,如果没有配置,则使用CONFIG_AUTOBOOT_DELAY_STR的值bootstopkey的匹配字符串为env中的bootstopkey的值,如果没有配置,则使用CONFIG_AUTOBOOT_STOP_STR的值
1 | static int passwd_abort_key(uint64_t etime) |
abortboot_single_key
- 获取任意输入,就终止
bootdelay_process
- 获取
bootdelay的值,如果没有配置,则使用CONFIG_BOOTDELAY的值
1 | const char *bootdelay_process(void) |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 wdfk-prog的个人博客!
评论







