blob: c0d2397c70b68ecf56169b6245436968af42672f [file] [log] [blame]
/*
* Copyright (c) 2017 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <misc/printk.h>
#include <console.h>
void main(void)
{
console_init();
printk("Start typing characters to see their hex codes printed\n");
while (1) {
u8_t c = console_getchar();
printk("char: [0x%x] %c\n", c, c);
}
}