summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-05-27 14:50:06 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-28 21:19:57 +0000
commitcbb5aafc0edd9a3bcf93949673598068ff8280db (patch)
treeab4d779c5ccdd951d85b4b8743603e7e26fd29b5
parent04c18e1e82ecfeded615ac8cee3b6b57184d9e23 (diff)
downloadchrome-ec-cbb5aafc0edd9a3bcf93949673598068ff8280db.tar.gz
Keyborg: show version on boot
Makes it more convenient to tell which version we are running. BUG=None TEST=Boot and see version string BRANCH=None Change-Id: Icf5497904bad1a8b3ea9dd81fbbe1b416c77127d Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/201668 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/keyborg/board.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/keyborg/board.c b/board/keyborg/board.c
index 706c89bdfc..9ddaf63270 100644
--- a/board/keyborg/board.c
+++ b/board/keyborg/board.c
@@ -14,6 +14,7 @@
#include "task.h"
#include "touch_scan.h"
#include "util.h"
+#include "version.h"
const struct ts_pin row_pins[] = {
{TS_GPIO_E, 0}, /* R1 */
@@ -124,12 +125,18 @@ const struct ts_pin col_pins[] = {
};
BUILD_ASSERT(ARRAY_SIZE(col_pins) == COL_COUNT);
+static const char *get_version(void)
+{
+ /* TODO: refine this when we have RW */
+ return version_data.version;
+}
+
int main(void)
{
int i = 0;
hardware_init();
touch_scan_init();
- debug_printf("Keyborg starting...\n");
+ debug_printf("%s starting...\n", get_version());
master_slave_init();