mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
SPI DMA: add support for SERCOM6 & 7 on big M4 chips
This commit is contained in:
parent
35055667c4
commit
e83e3ce2f1
@ -662,6 +662,16 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
|
|||||||
} else if(*(SERCOM **)hwspi._spi == &sercom5) {
|
} else if(*(SERCOM **)hwspi._spi == &sercom5) {
|
||||||
dmac_id = SERCOM5_DMAC_ID_TX;
|
dmac_id = SERCOM5_DMAC_ID_TX;
|
||||||
data_reg = &SERCOM5->SPI.DATA.reg;
|
data_reg = &SERCOM5->SPI.DATA.reg;
|
||||||
|
#endif
|
||||||
|
#if defined SERCOM6
|
||||||
|
} else if(*(SERCOM **)hwspi._spi == &sercom6) {
|
||||||
|
dmac_id = SERCOM6_DMAC_ID_TX;
|
||||||
|
data_reg = &SERCOM6->SPI.DATA.reg;
|
||||||
|
#endif
|
||||||
|
#if defined SERCOM7
|
||||||
|
} else if(*(SERCOM **)hwspi._spi == &sercom7) {
|
||||||
|
dmac_id = SERCOM7_DMAC_ID_TX;
|
||||||
|
data_reg = &SERCOM7->SPI.DATA.reg;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
dma.setPriority(DMA_PRIORITY_3);
|
dma.setPriority(DMA_PRIORITY_3);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=Adafruit GFX Library
|
name=Adafruit GFX Library
|
||||||
version=1.4.9
|
version=1.4.10
|
||||||
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…
x
Reference in New Issue
Block a user