Due and ethernet library
How does the Due use the ethernet library slave select? These are the choices in utility/w5100.h, but none seem to apply to the Due, Is there something I am missing?
if defined(ARDUINO_ARCH_AVR)
if defined(AVR_ATmega1280) || defined(AVR_ATmega2560)
inline static void initSS() { DDRB |= _BV(4); }; inline static void setSS() { PORTB &= ~_BV(4); }; inline static void resetSS() { PORTB |= _BV(4); };
elif defined(AVR_ATmega32U4)
inline static void initSS() { DDRB |= _BV(6); }; inline static void setSS() { PORTB &= ~_BV(6); }; inline static void resetSS() { PORTB |= _BV(6); };
elif defined(AVR_AT90USB1286) || defined(AVR_AT90USB646) || defined(AVR_AT90USB162)
inline static void initSS() { DDRB |= _BV(0); }; inline static void setSS() { PORTB &= ~_BV(0); }; inline static void resetSS() { PORTB |= _BV(0); };
else
inline static void initSS() { DDRB |= _BV(2); }; inline static void setSS() { PORTB &= ~_BV(2); }; inline static void resetSS() { PORTB |= _BV(2); };
endif
endif // ARDUINO_ARCH_AVR
Drop this issue. New v1.6.3 ethernet library code uses the Due SPI calls.