Skip to content

Commit 684047d

Browse files
committed
[network] wiznet: enable internal pull-up on INT line
1 parent 8a65cd3 commit 684047d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hal/network/lwip/wiznet/wiznetif.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ WizNetif::WizNetif(hal_spi_interface_t spi, hal_pin_t cs, hal_pin_t reset, hal_p
149149
};
150150
hal_gpio_configure(reset_, &conf, nullptr);
151151
hal_gpio_configure(cs_, &conf, nullptr);
152-
/* There is an external 10k pull-up */
153-
hal_gpio_mode(interrupt_, INPUT);
152+
/* There should be an external 10k pull-up, but if there isn't one activate internal one
153+
* to prevent interrupt line from floating. Worst case it's (13k + 10k) on Gen 3 and (50k + 10k) on Gen 4.
154+
*/
155+
hal_gpio_mode(interrupt_, INPUT_PULLUP);
154156

155157
SPARK_ASSERT(os_semaphore_create(&spiSem_, 1, 0) == 0);
156158

0 commit comments

Comments
 (0)