#include #include #include #include #define UART_DEVICE_NODE DT_CHOSEN(zephyr_shell_uart) static const struct device *const uart_dev = DEVICE_DT_GET(UART_DEVICE_NODE); #define SLIP_END 0xC0 int main(void) { if (!device_is_ready(uart_dev)) { printk("UART device not found!"); return 0; } while (true) { k_sleep(K_MSEC(1000)); uart_poll_out(uart_dev, SLIP_END); } return 0; }