mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Fix big-endian DMA
This commit is contained in:
parent
605474e3ca
commit
b57ea574fe
@ -950,7 +950,7 @@ void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len,
|
||||
int d, numDescriptors = (len + 32766) / 32767;
|
||||
for(d=0; d<numDescriptors; d++) {
|
||||
int count = (len < 32767) ? len : 32767;
|
||||
descriptor[d].SRCADDR.reg = (uint32_t)colors;
|
||||
descriptor[d].SRCADDR.reg = (uint32_t)colors + count * 2;
|
||||
descriptor[d].BTCTRL.bit.SRCINC = 1;
|
||||
descriptor[d].BTCNT.reg = count * 2;
|
||||
descriptor[d].DESCADDR.reg = (uint32_t)&descriptor[d+1];
|
||||
|
Loading…
Reference in New Issue
Block a user