Re: Help required on reading UART device and print on console
Erwan Gouriou
To answer your initial question, below example should work while (1) {struct device *uartGPS; uartGPS = device_get_binding(CONFIG_UART_STM32_PORT_1_NAME); unsigned char recvChar; while (uart_poll_in(uartGPS, &recvChar) < 0) ; printk("%c", recvChar); }
On 9 May 2017 at 15:30, Erwan Gouriou <erwan.gouriou@...> wrote:
|
|