Andrey Korol

EXAMPLE_GetRingBufferLengthEDMA in uart edma_rb_transfer example

Discussion created by Andrey Korol on Nov 12, 2019
Latest reply on Nov 15, 2019 by Andrey Korol

New uart driver example "edma_rb_transfer" in SDK2.6.0 has EXAMPLE_GetRingBufferLengthEDMA() implementation.

Seems function will return wrong result if data length in rx ringbuffer will be same as ringbuffer size.

Ex., size of uart dma ringbuffer is 255 bytes and same amount of bytes recieved - EXAMPLE_GetRingBufferLengthEDMA will return zero.