git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
23 lines
356 B
C
23 lines
356 B
C
/*
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr.h>
|
|
#include <sys/printk.h>
|
|
#include <console/console.h>
|
|
|
|
void 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);
|
|
}
|
|
}
|