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:
parent
df91320ee6
commit
cf2a10a274
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue