basic shell commands implemented
This commit is contained in:
17
source/firmware/kernel/include/shell_commands.h
Normal file
17
source/firmware/kernel/include/shell_commands.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* shell_commands.h
|
||||
*
|
||||
* Created on: Aug 11, 2016
|
||||
* Author: tkl
|
||||
*/
|
||||
|
||||
#ifndef SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_COMMANDS_H_
|
||||
#define SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_COMMANDS_H_
|
||||
|
||||
struct command cmd_kosmos_version;
|
||||
struct command cmd_list_all_commands;
|
||||
struct command cmd_echo_on;
|
||||
struct command cmd_echo_off;
|
||||
|
||||
|
||||
#endif /* SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_COMMANDS_H_ */
|
19
source/firmware/kernel/include/shell_data.h
Normal file
19
source/firmware/kernel/include/shell_data.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* shell_data.h
|
||||
*
|
||||
* Created on: Aug 11, 2016
|
||||
* Author: tkl
|
||||
*/
|
||||
|
||||
#ifndef SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_DATA_H_
|
||||
#define SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_DATA_H_
|
||||
|
||||
struct shell_object {
|
||||
struct list command_list;
|
||||
const struct driver *shell_device;
|
||||
bool echo_on;
|
||||
};
|
||||
|
||||
struct shell_object shell_object;
|
||||
|
||||
#endif /* SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_DATA_H_ */
|
Reference in New Issue
Block a user