Hi,
I'm trying to receive large packets on uart, but is seems to read one byte at a time .
uart_fifo_read() always returns 1
why is that?
can it be changed ?
Hi,
I'm trying to receive large packets on uart, but is seems to read one byte at a time .
uart_fifo_read() always returns 1
why is that?
can it be changed ?
why is that?
Because that's the way it is coded. It indeed always returns one because it always reads one byte at a time.
can it be changed ?
There is an api you can use, found here. There is an example that can read more than one byte at a time, by using DMA.