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