You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NB: determining memory overlapping can be a challenge: if src points to "striped" sram and dst to "sequential" ram, they could overlap and pointer arithmetic wouldn't notice
use memcpy()
else:
use DMA_SIZE_32 if destination % 4 == 0 && source % 4 == 0 && size % 4 == 0
use DMA_SIZE_16 if destination % 2 == 0 && source % 2 == 0 && size % 2 == 0
use DMA_SIZE_8 otherwise
The text was updated successfully, but these errors were encountered:
CHiPs44
changed the title
Use DMA to flip in double buffer mode
Use DMA to flip screen in double buffer mode
Oct 3, 2024
cf.
Prototype:
For now, if source and destination do overlap:
memcpy()
else:
DMA_SIZE_32
if destination % 4 == 0 && source % 4 == 0 && size % 4 == 0DMA_SIZE_16
if destination % 2 == 0 && source % 2 == 0 && size % 2 == 0DMA_SIZE_8
otherwiseThe text was updated successfully, but these errors were encountered: