Add basic LEDC support for esp32, esp32c3, esp32s2 and esp32s3#114
Conversation
bf1e4d1 to
4cc7065
Compare
|
We had a discussion with @bjoernQ about what should we do next with |
|
I'd vote for removing C3 from this PR and have a common implementation for C3, S2, S3 without an intermediate step for the C3 - then we can already get the ESP32 implementation in |
MabezDev
left a comment
There was a problem hiding this comment.
I agree, lets get the awkward one in now (esp32) and implement the shared one together in another PR.
|
I'm not understanding why this needs to be split up into multiple PRs. There don't appear to be any differences between the C3/S2/S3 other than number of channels (which can just be |
I guess there will be one separate PR for S2/S3/C3 ... but currently there is an implementation for C3 here which needs to get removed since currently the SVD for the C3 (in regards to LEDC) looks ..... interesting. So we should remove C3 from this PR and get a PR for everything but ESP32 and use this for ESP32 only ... hope that makes sense 😄 |
|
It does make sense, I was just under the impression it was working for the ESP32 and ESP32-C3 and so assumed that ESP32-S2/S3 were right behind them, and had no idea there were issues with the SVDs. I have already merged one set of patches for this peripheral, not sure why we didn't just patch the other offending SVDs at the same time. |
I think it just turned-out during today's review activity that the ESP32-C3 SVD wasn't in shape regarding LEDC - that patch was for ESP32 only I think. So I guess limiting this to ESP32 and then have a separate PR (or two since at least C3 needs SVD patches) is the best to move on here |
|
I've looked at the SVDs for the C3, S2, and S3. It looks like only the C3 needs a small patch and they are all otherwise the same. Already working on a fix. Changes to the C3's SVD will be:
EDIT: will also be patching some field names for the S2 and S3 which still have |
4ef4975 to
55111e2
Compare
|
I split the implementation into 2 separate ones - one for |
|
🎉 |
Basic LEDC support with examples for
esp32,esp32c3,esp32s2andesp32s3.TODO: