24 const char *tokens =
" '\"/:.";
27 while (token !=
NULL) {
cmd_struct_t cmdArray[MAX_CMD_LIST_LENGTH]
void initCmdArray(cmd_struct_t *arr)
int time(char parameters[][MAX_LENGTH])
int serial_print(const char *msg)
void exec_comm(char in_string[MAX_LENGTH])
exec_comm Takes parsed input and calls the proper command
int date(char parameters[][MAX_LENGTH])
char parsed[MAX_IN][MAX_LENGTH]
char * strcpy(char *s1, const char *s2)
strcpy copies one string to another string
int mcbFunc(char parameters[][MAX_LENGTH])
takes in whatever you are looking for and checks to see if it can be done for mcb ...
char in_string[MAX_LENGTH]
#define MAX_CMD_LIST_LENGTH
int version(char parameters[][MAX_LENGTH])
version prints out the current version of the operating system. It will print out R1...
int shutdownFunc(char parameters[][MAX_LENGTH])
shutdownFunc shuts down the OS.
char * strtok(char *s1, const char *s2)
strtok Split string into tokens.
void init_commhand(void)
init_commhand Starts input loop and waits for shutdown code
int loadr3(char parameters[][MAX_LENGTH])
loads all processes into memory in a suspended ready state at any priority of the users choosing ...
int pcbFunc(char parameters[][MAX_LENGTH])
takes in parameters and makes sure its valid then runs what you want to.
int serial_println(const char *msg)
int(* cmdFunc)(char[][MAX_LENGTH])
char * serial_poll(char in_string[MAX_LENGTH])
int strcmp(const char *s1, const char *s2)
strcmp compares two strings.
int helpFunc(char parameters[][MAX_LENGTH])
helpFunc calls the other help functions
void parse_comm(char in_string[MAX_LENGTH], char parsed[MAX_IN][MAX_LENGTH])
parse_comm Parses the input recieved from the user input using ' ' as a delimeter ...