Sign in
pigweed
/
third_party
/
github
/
zephyrproject-rtos
/
zephyr
/
b4ec662193fa0129e22c9411e62c671d1533af09
/
.
/
samples
/
subsys
/
console
/
getchar
/
src
/
main.c
blob: 6b1290a6ef96270e12a34c6ddf77f0f755d66149 [
file
] [
log
] [
blame
]
#include
<zephyr.h>
#include
<misc/printk.h>
#include
<console.h>
void
main
(
void
)
{
console_getchar_init
();
while
(
1
)
{
uint8_t
c
=
console_getchar
();
printk
(
"char: [0x%x] %c\n"
,
c
,
c
);
}
}