Add support for Arduinu Uno WiFi R2

Added support for the Arduino Uno WiFi R2. Solution found at https://forums.adafruit.com/viewtopic.php?f=47&t=161677#p799163 found by the user thorx.
This commit is contained in:
George 2021-12-29 15:10:13 +01:00 committed by GitHub
parent df91320ee6
commit cf2a10a274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,6 +372,11 @@ typedef SdFatSpiDriver SdSpiDriver;
//==============================================================================
// Use of in-line for AVR to save flash.
#ifdef __AVR__
#if defined (__AVR_ATmega4809__)
#define SPDR SPI0_DATA
#define SPSR SPI0_INTFLAGS
#define SPIF 7
#endif // __AVR_ATmega4809__
//------------------------------------------------------------------------------
inline void SdSpiAltDriver::begin(uint8_t csPin) {
m_csPin = csPin;