From 0873b36aa53590e2ace81a3b0535ead7c668bcbb Mon Sep 17 00:00:00 2001 From: Dino Tinitigan Date: Wed, 17 Feb 2016 13:25:10 -0800 Subject: [PATCH] Add Arduino/Genuino 101 Support for Ethernet lib --- libraries/Ethernet/src/utility/w5100.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/Ethernet/src/utility/w5100.h b/libraries/Ethernet/src/utility/w5100.h index 8ffa4a71d..15de01c83 100644 --- a/libraries/Ethernet/src/utility/w5100.h +++ b/libraries/Ethernet/src/utility/w5100.h @@ -344,6 +344,10 @@ private: inline static void setSS() { PORTB &= ~_BV(2); }; inline static void resetSS() { PORTB |= _BV(2); }; #endif + #elif defined(__ARDUINO_ARC__) + inline static void initSS() { pinMode(10, OUTPUT); }; + inline static void setSS() { digitalWrite(10, LOW); }; + inline static void resetSS() { digitalWrite(10, HIGH); }; #else inline static void initSS() { *portModeRegister(digitalPinToPort(ETHERNET_SHIELD_SPI_CS)) |= digitalPinToBitMask(ETHERNET_SHIELD_SPI_CS);