Skip to content

Add Arduino/Genuino 101 support to SD library #4586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions libraries/SD/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 libraries/SD/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