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>
This commit is contained in:
Vic Yang
2014-05-27 14:50:06 -07:00
committed by chrome-internal-fetch
parent 04c18e1e82
commit cbb5aafc0e

View File

@@ -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();