Skip to content

Commit

Permalink
Arduino Zero can't use W5100-based shields with SCK > 8 MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Jul 26, 2018
1 parent f60bb83 commit 7b5ee58
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utility/w5100.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
#define SPI_ETHERNET_SETTINGS SPISettings(8000000, MSBFIRST, SPI_MODE0)
#endif

// Arduino Zero can't use W5100-based shields faster than 8 MHz
// https://github.com/arduino-libraries/Ethernet/issues/37#issuecomment-408036848
// W5500 does seem to work at 12 MHz. Delete this if only using W5500
#if defined(__SAMD21G18A__)
#undef SPI_ETHERNET_SETTINGS
#define SPI_ETHERNET_SETTINGS SPISettings(8000000, MSBFIRST, SPI_MODE0)
#endif


typedef uint8_t SOCKET;

class SnMR {
Expand Down

0 comments on commit 7b5ee58

Please sign in to comment.