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的个人博客!
评论