Skip to content

Commit e83e3ce

Browse files
SPI DMA: add support for SERCOM6 & 7 on big M4 chips
1 parent 3505566 commit e83e3ce

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Adafruit_SPITFT.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,16 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
662662
} else if(*(SERCOM **)hwspi._spi == &sercom5) {
663663
dmac_id = SERCOM5_DMAC_ID_TX;
664664
data_reg = &SERCOM5->SPI.DATA.reg;
665+
#endif
666+
#if defined SERCOM6
667+
} else if(*(SERCOM **)hwspi._spi == &sercom6) {
668+
dmac_id = SERCOM6_DMAC_ID_TX;
669+
data_reg = &SERCOM6->SPI.DATA.reg;
670+
#endif
671+
#if defined SERCOM7
672+
} else if(*(SERCOM **)hwspi._spi == &sercom7) {
673+
dmac_id = SERCOM7_DMAC_ID_TX;
674+
data_reg = &SERCOM7->SPI.DATA.reg;
665675
#endif
666676
}
667677
dma.setPriority(DMA_PRIORITY_3);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit GFX Library
2-
version=1.4.9
2+
version=1.4.10
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.

0 commit comments

Comments
 (0)