Skip to content

Commit 781cab9

Browse files
authored
support all new chips, not just megaAVR 0-series
This change has been tested in megaTinyCore and DxCore. This simple change adds compatibility with all tinyAVR 0/1/2-series parts, Dx-series including the future DD-series, and anything else Microchip is likely to release in the foreseeable futire all without breaking compatibility with megaAVR 0-series. __AVR_ARCH__ =103 for all tinyAVR 0/1/2-series and megaAVR 0-series (103 is "all modern AVRs where the flash is fully memory mapped", as well as 32k Dx-series. 102 is 64k modern AVRs which thus don't have all of their flash memory mapped, (so it catches the AVR64Dx parts), and 104 s 128k modern AVRs for the all important AVR128Dx parts.
1 parent fd7afae commit 781cab9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utility/Sd2PinMap.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@
3131

3232
#endif // Sd2PinMap_h
3333

34-
#elif defined(__AVR_ATmega4809__) || defined(__AVR_ATmega4808__) || \
35-
defined(__AVR_ATmega3209__) || defined(__AVR_ATmega3208__) || \
36-
defined(__AVR_ATmega1609__) || defined(__AVR_ATmega1608__) || \
37-
defined(__AVR_ATmega809__) || defined(__AVR_ATmega808__)
34+
#elif defined(__AVR_ARCH__) && (__AVR_ARCH__ == 102 || __AVR_ARCH__ == 103 || __AVR_ARCH__ == 104)
3835

3936
#ifndef Sd2PinMap_h
4037
#define Sd2PinMap_h

0 commit comments

Comments
 (0)