Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 37a32b5

Browse files
authored
Update for Teensy 4.x and W5100
1 parent b51bfa3 commit 37a32b5

File tree

1 file changed

+4
-0
lines changed
  • LibraryPatches/Ethernet/src/utility

1 file changed

+4
-0
lines changed

LibraryPatches/Ethernet/src/utility/w5100.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ class W5100Class {
477477
inline static void resetSS()
478478
{
479479
*(ss_pin_reg+33) = ss_pin_mask;
480+
481+
// Check https://forum.pjrc.com/threads/66758-Teensy-4-0-and-Ethernet-(WIZ5100-and-WIZ812)
482+
if (chip == 51)
483+
delayNanoseconds(10); // <-- fixes W5100 on Teensy 4
480484
}
481485
#elif defined(__MKL26Z64__)
482486
static volatile uint8_t *ss_pin_reg;

0 commit comments

Comments
 (0)