From 1952f7257eecfa2ec0ab0d1edb5b9ddd779073ed Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Mon, 29 Aug 2016 17:13:00 +0200 Subject: [PATCH 1/2] shell print interface implemented --- source/firmware/kernel/interface/shell.h | 1 + source/firmware/kernel/shell.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/source/firmware/kernel/interface/shell.h b/source/firmware/kernel/interface/shell.h index c242e8d..1b176ee 100644 --- a/source/firmware/kernel/interface/shell.h +++ b/source/firmware/kernel/interface/shell.h @@ -19,5 +19,6 @@ struct command { int shell_init(const struct driver *shell_device); int shell_add_command(struct command *command); +int shell_write(const char *buffer, unsigned int len); #endif /* SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_ */ diff --git a/source/firmware/kernel/shell.c b/source/firmware/kernel/shell.c index 835d31e..1a66456 100644 --- a/source/firmware/kernel/shell.c +++ b/source/firmware/kernel/shell.c @@ -96,3 +96,10 @@ int shell_add_command(struct command *command) list_add(&shell_object.command_list, &command->item); 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); +} From cabc27c6c86e5cddfec2fec3eee1892a57e27a22 Mon Sep 17 00:00:00 2001 From: tkl Date: Tue, 30 Aug 2016 05:55:34 +0000 Subject: [PATCH 2/2] Version numbering for v0.1.6 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3247450..255482f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ variables: SW_KERNEL: "0" SW_MAJOR: "1" - SW_MINOR: "5" + SW_MINOR: "6" before_script: - "echo $CI_BUILD_ID"