my first thoughts about the two buffers secinario.
- the LVGL processes the First buffer then calls
disp_flushsends the buffer to the
freeDMA then return and acknowledges using
- the DMA is now sending the data to the LCD in the background.
- the LVGL processes the Second buffer then calls
- the DMA is now
busysending the data in First buffer, the
disp_flushwould lock till the DMA is
then sends the second buffer to DMA and then acknowledges using
- the LVGL again processes the First buffer and repeats.
If this is right, then what is the use of the acknowledgment using
it always sits at the end of the
the flush function wouldn’t return if the DMA isn’t free at the moment. then the LVGL will not proceed also.
another approach is to call the
lv_disp_flush_ready after the DMA finishes, using interrupts.
and not at the end of the