extmod/network_wiznet5k: Add Wiznet Ethernet network interface.

Originally based on both stm32/network_wiznet5k and stm32/modnwwiznet5k.

If MICROPY_PY_LWIP is enabled it uses the lwIP TCP stack in MicroPython,
communicating with the Wiznet controller in MACRAW mode.  In this mode it
supports using the INTN pin from Wiznet controller to receive data from an
interrupt trigger.

If lwIP is not enabled, it runs in modnetwork/socket mode providing an
interface to the TCP stack running on the Wiznet controller chip.  In this
mode it includes some updates by @irinakim12 from #8021, most notably
bringing in DHCP support.

Supports defining hardware pins in board config or dynamically set at
runtime.  Sets a default MAC address in the random namespace from board
unique-id.

Signed-off-by: Andrew Leech <andrew@alelec.net>
pull/8724/head
Andrew Leech 2022-05-05 16:12:15 +10:00 zatwierdzone przez Damien George
rodzic cb436e357f
commit 21b3a396de
1 zmienionych plików z 1042 dodań i 0 usunięć

Plik diff jest za duży Load Diff