Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Due and ethernet library

Open SurferTim opened this issue 11 years ago • 1 comments

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

SurferTim avatar May 14 '15 22:05 SurferTim

Drop this issue. New v1.6.3 ethernet library code uses the Due SPI calls.

SurferTim avatar May 15 '15 02:05 SurferTim