network: wiznet: send_ethernet
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues and didn't find any that matched.
Documentation URL
https://docs.micropython.org/en/latest/library/network.WIZNET5K.html
Description
The nic instance has also this method: send_ethernet
It is undocumented.
I tried and it works: it permits to send raw ethernet packets on the wire.
wiznet: spi baudrate declared as 2 and 20 MHz ?!
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues matching this bug, and didn't find any.
Port, board and/or hardware
rp2
MicroPython version
Micropython 1.22.2
Reproduction
network_wiznet5k.c
#define MICROPY_HW_WIZNET_SPI_BAUDRATE (2000000)
mpconfigboard.h
#define MICROPY_HW_WIZNET_SPI_BAUDRATE (20 * 1000 * 1000)
Expected behaviour
Which is the right speed?
Should I try with 20 MHz ?
Observed behaviour
Initializing the SPI bus at 2 MHz works.
Additional Information
No, I've provided everything above.