关于uart_driver_install

iakihsoug
Posts: 2
Joined: Mon Oct 18, 2021 4:26 am

关于uart_driver_install

Postby iakihsoug » Mon Oct 18, 2021 4:32 am

我希望从某个UART_NUM接收到的数据返回到这个UART_NUM中去,他们共用同一个队列
请问是否可以在uart_driver_install的queue中,获取到具体的UART_NUM?
uart_driver_install(UART_NUM0, BUF_SIZE * 2, BUF_SIZE * 2, 20, &uart_queue, 0);
uart_driver_install(UART_NUM1, BUF_SIZE * 2, BUF_SIZE * 2, 20, &uart_queue, 0);
如果不行的话,是否有其他的实现方式?
谢谢

Who is online

Users browsing this forum: No registered users and 107 guests