Page 1 of 1

How to get UART_NUM via uart_driver_install

Posted: Mon Oct 18, 2021 6:31 am
by iakihsoug
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?

Re: How to get UART_NUM via uart_driver_install

Posted: Mon Oct 18, 2021 7:47 am
by ESP_Sprite
The API is not intended to share a queue, sorry. Better to use two queues.