Skip to content

Commit

Permalink
Merge pull request #11 from Travelbacon/master
Browse files Browse the repository at this point in the history
Add support for Arduinu Uno WiFi R2
  • Loading branch information
ladyada authored Dec 29, 2021
2 parents df91320 + cf2a10a commit 5d752a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SpiDriver/SdSpiDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d752a3

Please sign in to comment.