Skip to content

Commit 63b9349

Browse files
committed
Modified wizchip_reset
1 parent 9e491d5 commit 63b9349

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

port/ioLibrary_Driver/src/wizchip_spi.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,14 @@ static inline void wizchip_deselect(void)
9393
void wizchip_reset()
9494
{
9595
gpio_init(PIN_RST);
96+
97+
#if defined(USE_PIO) && (_WIZCHIP_ == W5500)
98+
gpio_pull_up(PIN_RST);
99+
gpio_set_dir(PIN_RST, GPIO_OUT);
100+
sleep_ms(5);
101+
#else
96102
gpio_set_dir(PIN_RST, GPIO_OUT);
97-
103+
#endif
98104
gpio_put(PIN_RST, 0);
99105
sleep_ms(100);
100106

0 commit comments

Comments
 (0)