Source code for the Trusted Boot Module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tbm-mcu/include/shell.h

17 lines
350 B

#pragma once
size_t count_args(char *line);
char **parse_args(char *line, size_t *argc);
struct cmd {
const char *key;
void (* exec)(const char *line);
};
void do_flash_cmd(const char *line);
void do_ftl_cmd(const char *line);
void do_mufs_cmd(const char *line);
void cmd_exec(struct cmd *cmds, const char *line);
void cmd_loop(const char *s);