1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Merge pull request #4596 from bigdinotech/ethernetlib

Add Arduino/Genuino 101 Support for Ethernet lib
This commit is contained in:
Martino Facchin 2016-02-29 15:32:36 +01:00
commit 5500c9b8c3

View File

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