summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Chen <shchen@chromium.org>2016-12-22 09:44:01 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-13 21:48:34 -0800
commit3409e6063332220890a2fc2b106e4a20a1f836b8 (patch)
treeeef0d90c98cc1a2448416e2cc355e90cd7b581ba
parent21015898b39aa8742057ed6e6423c308c8d0a15d (diff)
downloadvboot-3409e6063332220890a2fc2b106e4a20a1f836b8.tar.gz
firmware: Adding VbExDisplayText function
Enables easy printing of text to display. Will be used for detachable UI. BUG=chrome-os-partner:61275 BRANCH=None TEST=Tested from new vboot_ui_menu.c file CQ-DEPEND=CL:424357 Change-Id: I668dd57eaafa02fb31f6ac479bcd03a613323f14 Signed-off-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/424090 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--firmware/include/vboot_api.h6
-rw-r--r--firmware/stub/vboot_api_stub.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index cfb1d7ef..f127ab8e 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -788,6 +788,12 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y,
void *buffer, uint32_t buffersize);
/**
+ * Display a string at coordinate x,y
+ */
+VbError_t VbExDisplayText(uint32_t x, uint32_t y,
+ const char *info_str);
+
+/**
* Display a string containing debug information on the screen, rendered in a
* platform-dependent font. Should be able to handle newlines '\n' in the
* string. Firmware must support displaying at least 20 lines of text, where
diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c
index 717c0f8d..1e8ff563 100644
--- a/firmware/stub/vboot_api_stub.c
+++ b/firmware/stub/vboot_api_stub.c
@@ -52,6 +52,12 @@ VbError_t VbExDisplayImage(uint32_t x, uint32_t y,
return VBERROR_SUCCESS;
}
+VbError_t VbExDisplayText(uint32_t x, uint32_t y,
+ const char *info_str)
+{
+ return VBERROR_SUCCESS;
+}
+
VbError_t VbExDisplayDebugInfo(const char *info_str)
{
return VBERROR_SUCCESS;