diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-05-23 09:22:52 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-05-23 09:22:52 +0200 |
commit | a3dbb49c078176fca1610f4a61b0d1b23e3f37c9 (patch) | |
tree | 97c6f70b3f54da526db9acf93ed0b4ef24248b4e /libraries/Ethernet/utility | |
parent | 3786e337e0211ca1ef94b37b03e891adfb3b5f9a (diff) | |
parent | 810803c6d3ab33a4496a89f41ef7e1dda15e8680 (diff) |
Merge of arduino-1.0.1. Work in progress...
Diffstat (limited to 'libraries/Ethernet/utility')
-rwxr-xr-x | libraries/Ethernet/utility/w5100.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/Ethernet/utility/w5100.h b/libraries/Ethernet/utility/w5100.h index 153aedb..8dccd9f 100755 --- a/libraries/Ethernet/utility/w5100.h +++ b/libraries/Ethernet/utility/w5100.h @@ -327,7 +327,11 @@ private: 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__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB162__) +#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); }; |