feat: add ESP32 (LX6) WiFi support - #54
Merged
Merged
Conversation
Member
Author
|
This PR requires the changes in tinygo-org/tinygo#5510 to be compiled. It also requires the changes in tinygo-org/tinygo#5511 to be flashed. UPDATE: both of those are now complete! 😸 |
Port the WiFi driver to the original ESP32 (Xtensa LX6), modeled on the ESP32-S3 implementation. Signed-off-by: deadprogram <ron@hybridgroup.com>
Signed-off-by: deadprogram <ron@hybridgroup.com>
- NetDev: use global singleton instead of heap-allocating per call
- event_group_wait_bits: inline matches closure to prevent captured
variables escaping; replace time.Now()/time.Since() with uint64
microsecond arithmetic
- semphr_take: same time.Now → uint64 microsecond fix
- task_create_pinned_to_core: replace make(chan) with atomic flag +
Gosched spin
- wifi_thread_semphr_get: use pre-allocated threadSems[8] pool
instead of heap-allocating &semaphore{} per goroutine
Signed-off-by: deadprogram <ron@hybridgroup.com>
Member
Author
|
I have added another commit to this PR which is to reduce heap allocations, both in the ESP32 as well as all of the other supported processors. |
soypat
approved these changes
Jul 23, 2026
soypat
left a comment
Contributor
There was a problem hiding this comment.
Lneto part looks good! Also nice to see you brought in latest natiu-mqtt :)
Member
Author
|
Now merging, thank you for review @soypat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port the WiFi driver to the original ESP32 (Xtensa LX6), modeled on the ESP32-S3 implementation.
The examples that use lneto directly work, but the net/http package at present uses too much memory to work on this device.