Add support clock mode for ESP32 ethernet module#4515
Add support clock mode for ESP32 ethernet module#4515petrkr wants to merge 5 commits intomicropython:masterfrom
Conversation
bd1b537 to
6e49b69
Compare
|
Rebase to latest master |
|
Thanks, it looks really good! One point: don't you think it's better to use the ESP-IDF default if (args[ARG_clock_mode].u_int != -1) {
// validate value
config.clock_mode = args[ARG_clock_mode].u_int;
} |
Hi, |
|
One more question before I will test it on HW later... |
The "u" stands for union, so it is a signed int. -1 is a good value to indicate default. |
6e49b69 to
729485e
Compare
I see. In that case, pushed change (with rebase to actual master) |
This allows more options to be overridden to 0 in an mpconfigboard.mk. Improved: * FRAMEBUFFERIO, FULL_BUILD, BITOPS, PWMIO, RGBMATRIX, OTARYIO, PULSEIO, WATCHDOG Still problematic (pull requests welcome): * RP2PIO & NEOPIXEL_WRITE, possibly only if a status neopixel is defined * BITBANGIO, possibly only if BUSIO is enabled * RTC Incidentally, with RP2PIO & NEOPIXEL_WRITE, BITBANGIO, and RTC re-enabled I get ``` 323956 bytes used, 720524 bytes free in flash firmware space out of 1044480 bytes (1020.0kB). 12072 bytes used, 250072 bytes free in ram for stack and heap out of 262144 bytes (256.0kB). ``` Closes micropython#4515
I've added optional parameter support for network.LAN
clock_modeand implemented new enum string fornetworkmodule class to support Clock mode for ESP32.Can be used for some cases when especially LAN8720 modules uses clock source from ESP's pin GPIO17.
usage:
new enum at network module:
Also added catch events for ethernet module:
should fix #4502
Later I think about do some events like wifi has. But for fix work with different clock modes should be this enough.