When I use uart_driver_install with two uart like:
uart_driver_install(UART_NUM_0, BUF_SIZE * 2, BUF_SIZE * 2, 20, &uart_queue, 0);
uart_driver_install(UART_NUM_1, BUF_SIZE * 2, BUF_SIZE * 2, 20, &uart_queue, 0);
can I get uart_num in uart_queue?
How to get UART_NUM via uart_driver_install
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to get UART_NUM via uart_driver_install
The API is not intended to share a queue, sorry. Better to use two queues.
Who is online
Users browsing this forum: No registered users and 94 guests