From cbb5aafc0edd9a3bcf93949673598068ff8280db Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Tue, 27 May 2014 14:50:06 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/201668 Reviewed-by: Vincent Palatin --- board/keyborg/board.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.1