|
Modestus Moon OS
R4
CS 450 project
|
#include <core/serial.h>#include <input.h>#include <string.h>#include "include/comm_list.h"#include <linked_list.h>
Go to the source code of this file.
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 More... | |
| void | exec_comm (char in_string[MAX_LENGTH]) |
| exec_comm Takes parsed input and calls the proper command More... | |
| void | initCmdArray (cmd_struct_t *arr) |
| void | init_commhand (void) |
| init_commhand Starts input loop and waits for shutdown code More... | |
Variables | |
| char | parsed [MAX_IN][MAX_LENGTH] ={{""}} |
| char | in_string [MAX_LENGTH] = {""} |
| int | shutdown = 0 |
| cmd_struct_t | cmdArray [MAX_CMD_LIST_LENGTH] |
| void exec_comm | ( | char | in_string[MAX_LENGTH] | ) |
exec_comm Takes parsed input and calls the proper command
| in_string | The string input recieved from the user |
Definition at line 38 of file commhand.c.
References s_cmd_struct::cmdFunc, in_string, MAX_CMD_LIST_LENGTH, MAX_LENGTH, parse_comm(), parsed, serial_println(), shutdown, and strcmp().
Referenced by init_commhand().
| void init_commhand | ( | void | ) |
init_commhand Starts input loop and waits for shutdown code
Definition at line 200 of file commhand.c.
References s_cmd_struct::cmdFunc, exec_comm(), IDLE, in_string, initCmdArray(), MAX_LENGTH, parsed, PROMPT, serial_poll(), serial_print(), shutdown, and sys_req().
Referenced by kmain().
| void initCmdArray | ( | cmd_struct_t * | arr | ) |
Definition at line 169 of file commhand.c.
References s_cmd_struct::cmdFunc, s_cmd_struct::cmdName, date(), helpFunc(), loadr3(), mcbFunc(), pcbFunc(), shutdownFunc(), time(), and version().
Referenced by init_commhand().
| 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
| in_string | The string input recieved from the user |
| parsed | The pointer to each parsed string |
Definition at line 23 of file commhand.c.
References in_string, NULL, parsed, strcpy(), and strtok().
Referenced by exec_comm().
| cmd_struct_t cmdArray[MAX_CMD_LIST_LENGTH] |
Definition at line 15 of file commhand.c.
| char in_string[MAX_LENGTH] = {""} |
Definition at line 10 of file commhand.c.
Referenced by exec_comm(), init_commhand(), parse_comm(), serial_poll(), and shutdownFunc().
| char parsed[MAX_IN][MAX_LENGTH] ={{""}} |
Definition at line 9 of file commhand.c.
Referenced by exec_comm(), init_commhand(), and parse_comm().
| int shutdown = 0 |
Definition at line 11 of file commhand.c.
Referenced by exec_comm(), and init_commhand().