We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 057bf63 + 5536617 commit ac01c63Copy full SHA for ac01c63
libraries/SD/src/utility/Sd2PinMap.h
@@ -491,6 +491,21 @@ static inline __attribute__((always_inline))
491
}
492
#endif // Sd2PinMap_h
493
494
+#elif defined (__CPU_ARC__)
495
+
496
+#if defined (__ARDUINO_ARC__)
497
+// Two Wire (aka I2C) ports
498
+uint8_t const SDA_PIN = 18;
499
+uint8_t const SCL_PIN = 19;
500
501
+// SPI port
502
+uint8_t const SS_PIN = 10;
503
+uint8_t const MOSI_PIN = 11;
504
+uint8_t const MISO_PIN = 12;
505
+uint8_t const SCK_PIN = 13;
506
507
+#endif // Arduino ARC
508
509
#else
510
#error Architecture or board not supported.
511
#endif
libraries/SD/src/utility/SdFat.h
@@ -23,7 +23,7 @@
23
* \file
24
* SdFile and SdVolume classes
25
*/
26
-#ifdef __AVR__
+#if defined (__AVR__) || defined (__CPU_ARC__)
27
#include <avr/pgmspace.h>
28
29
#include "Sd2Card.h"
0 commit comments