Merge pull request #4586 from bigdinotech/sdlib

Add Arduino/Genuino 101 support to SD library
This commit is contained in:
Martino Facchin 2016-02-29 15:31:13 +01:00
commit ac01c6375e
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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"