Parallel writing and reading Bluetooth on DRVUart on keil C(ARM)

62 Views Asked by At

I'm using NuMicroTM Mini51 Series Driver: link

In the main code I'm using the same port: UART_PORT0for listening and sending buffers via the port, but I'm calling them by using separate threads. My goal is to read and write in parallel using the same port with no blocking caused by any of these methods(DRV_UART_READ and DRV_UART_WRITE) but still, when I'm trying to call both of them in parallel, the first thread(READ thread) puts the port on some sort of blocking mode, till it gets the whole buffer.

Thanks from advance.

0

There are 0 best solutions below