mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Merge pull request #4586 from bigdinotech/sdlib
Add Arduino/Genuino 101 support to SD library
This commit is contained in:
commit
ac01c6375e
@ -491,6 +491,21 @@ static inline __attribute__((always_inline))
|
|||||||
}
|
}
|
||||||
#endif // Sd2PinMap_h
|
#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
|
#else
|
||||||
#error Architecture or board not supported.
|
#error Architecture or board not supported.
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
* \file
|
* \file
|
||||||
* SdFile and SdVolume classes
|
* SdFile and SdVolume classes
|
||||||
*/
|
*/
|
||||||
#ifdef __AVR__
|
#if defined (__AVR__) || defined (__CPU_ARC__)
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
#endif
|
#endif
|
||||||
#include "Sd2Card.h"
|
#include "Sd2Card.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user