Skip to content

Commit

Permalink
Merge pull request #4586 from bigdinotech/sdlib
Browse files Browse the repository at this point in the history
Add Arduino/Genuino 101 support to SD library
  • Loading branch information
facchinm committed Feb 29, 2016
2 parents 35eca49 + 2bfce8c commit fe32b28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/utility/Sd2PinMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,21 @@ static inline __attribute__((always_inline))
}
#endif // Sd2PinMap_h

#elif defined (__CPU_ARC__)

#if defined (__ARDUINO_ARC__)
// Two Wire (aka I2C) ports
uint8_t const SDA_PIN = 18;
uint8_t const SCL_PIN = 19;

// SPI port
uint8_t const SS_PIN = 10;
uint8_t const MOSI_PIN = 11;
uint8_t const MISO_PIN = 12;
uint8_t const SCK_PIN = 13;

#endif // Arduino ARC

#else
#error Architecture or board not supported.
#endif
2 changes: 1 addition & 1 deletion src/utility/SdFat.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* \file
* SdFile and SdVolume classes
*/
#ifdef __AVR__
#if defined (__AVR__) || defined (__CPU_ARC__)
#include <avr/pgmspace.h>
#endif
#include "Sd2Card.h"
Expand Down

0 comments on commit fe32b28

Please sign in to comment.