File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
libraries/Ethernet/src/utility Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,16 @@ class W5100Class {
344
344
inline static void setSS () { PORTB &= ~_BV (2 ); };
345
345
inline static void resetSS () { PORTB |= _BV (2 ); };
346
346
#endif
347
+ #else
348
+ inline static void initSS () {
349
+ *portModeRegister (digitalPinToPort (ETHERNET_SHIELD_SPI_CS)) |= digitalPinToBitMask (ETHERNET_SHIELD_SPI_CS);
350
+ }
351
+ inline static void setSS () {
352
+ *portOutputRegister (digitalPinToPort (ETHERNET_SHIELD_SPI_CS)) &= ~digitalPinToBitMask (ETHERNET_SHIELD_SPI_CS);
353
+ }
354
+ inline static void resetSS () {
355
+ *portOutputRegister (digitalPinToPort (ETHERNET_SHIELD_SPI_CS)) |= digitalPinToBitMask (ETHERNET_SHIELD_SPI_CS);
356
+ }
347
357
#endif
348
358
#else
349
359
#define SPI_ETHERNET_SETTINGS ETHERNET_SHIELD_SPI_CS,SPISettings(4000000 , MSBFIRST, SPI_MODE0)
You can’t perform that action at this time.
0 commit comments