SPI DMA: add support for SERCOM6 & 7 on big M4 chips

This commit is contained in:
Phillip Burgess 2019-04-21 18:43:05 -07:00
parent 35055667c4
commit e83e3ce2f1
2 changed files with 11 additions and 1 deletions

View File

@ -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);

View File

@ -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.