mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Conditional compile SAMD51 parallel code
This commit is contained in:
parent
fe6266e2a8
commit
026c152d45
@ -690,6 +690,7 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
|
|||||||
|
|
||||||
} else { // Parallel connection
|
} else { // Parallel connection
|
||||||
|
|
||||||
|
#if defined(__SAMD51__)
|
||||||
int dmaChannel = dma.getChannel();
|
int dmaChannel = dma.getChannel();
|
||||||
// Enable event output, use EVOSEL output
|
// Enable event output, use EVOSEL output
|
||||||
DMAC->Channel[dmaChannel].CHEVCTRL.bit.EVOE = 1;
|
DMAC->Channel[dmaChannel].CHEVCTRL.bit.EVOE = 1;
|
||||||
@ -795,6 +796,7 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
|
|||||||
descriptor[d].DSTADDR.reg =
|
descriptor[d].DSTADDR.reg =
|
||||||
(uint32_t)tft8.writePort;
|
(uint32_t)tft8.writePort;
|
||||||
}
|
}
|
||||||
|
#endif // __SAMD51
|
||||||
} // end parallel-specific DMA setup
|
} // end parallel-specific DMA setup
|
||||||
|
|
||||||
lastFillColor = 0x0000;
|
lastFillColor = 0x0000;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=Adafruit GFX Library
|
name=Adafruit GFX Library
|
||||||
version=1.4.5
|
version=1.4.6
|
||||||
author=Adafruit
|
author=Adafruit
|
||||||
maintainer=Adafruit <info@adafruit.com>
|
maintainer=Adafruit <info@adafruit.com>
|
||||||
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.
|
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.
|
||||||
|
Loading…
Reference in New Issue
Block a user