commit
c0ca2006cb
@ -1,7 +1,7 @@
|
|||||||
variables:
|
variables:
|
||||||
SW_KERNEL: "0"
|
SW_KERNEL: "0"
|
||||||
SW_MAJOR: "1"
|
SW_MAJOR: "1"
|
||||||
SW_MINOR: "5"
|
SW_MINOR: "6"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "echo $CI_BUILD_ID"
|
- "echo $CI_BUILD_ID"
|
||||||
|
@ -19,5 +19,6 @@ struct command {
|
|||||||
|
|
||||||
int shell_init(const struct driver *shell_device);
|
int shell_init(const struct driver *shell_device);
|
||||||
int shell_add_command(struct command *command);
|
int shell_add_command(struct command *command);
|
||||||
|
int shell_write(const char *buffer, unsigned int len);
|
||||||
|
|
||||||
#endif /* SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_ */
|
#endif /* SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_ */
|
||||||
|
@ -96,3 +96,10 @@ int shell_add_command(struct command *command)
|
|||||||
list_add(&shell_object.command_list, &command->item);
|
list_add(&shell_object.command_list, &command->item);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int shell_write(const char *buffer, unsigned int len)
|
||||||
|
{
|
||||||
|
if((NULL == buffer) || (NULL == shell_object.shell_device))
|
||||||
|
return -1;
|
||||||
|
return drv_write(shell_object.shell_device, buffer, len);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user