Skip to content

Commit ffd2cec

Browse files
committed
Tweak to defines to support a couple more AVRs - the ATmega32U4 and AT90USB1286, so it doesn't need to be patched for the Teensy boards.
1 parent 789e22a commit ffd2cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Ethernet/utility/w5100.h

+4
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ class W5100Class {
324324
inline static void initSS() { DDRB |= _BV(4); };
325325
inline static void setSS() { PORTB &= ~_BV(4); };
326326
inline static void resetSS() { PORTB |= _BV(4); };
327+
#elif defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB162__)
328+
inline static void initSS() { DDRB |= _BV(0); };
329+
inline static void setSS() { PORTB &= ~_BV(0); };
330+
inline static void resetSS() { PORTB |= _BV(0); };
327331
#else
328332
inline static void initSS() { DDRB |= _BV(2); };
329333
inline static void setSS() { PORTB &= ~_BV(2); };

0 commit comments

Comments
 (0)