1 /* 2 * Copyright (c) 2023 Antmicro <www.antmicro.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/sys/printk.h> 9 #include <zephyr/console/console.h> 10 main(void)11int main(void) 12 { 13 console_getline_init(); 14 15 while (1) { 16 char *s = console_getline(); 17 18 printk("getline: %s;\n", s); 19 } 20 return 0; 21 } 22