-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add temperature sensor header for ESP32C3 #259
Conversation
@Vollbrecht FYI |
lets make this work here so we can merge this, one idea you could test is if we can use the |
Seems like |
well if it works i think we should go with it, because than we don't need to keep track of it since its handled upstream . |
At least it did so locally (i tested esp32c3 against esp32). I tried to look at the looks to figure out the problem, but they mention
and
and I have not touched anything related to that so I'm wondering if the issue is not with my changes perhaps? |
we need to distinguish between esp-idf versions v4 and v5. The driver in its current form we exporting here is only available in v5, look here, they had a driver specific for each target in v4 but it is not that capable compered to the newer on for example here is the header for the c3. So you see they changed the directory structure for the drivers. For now we should import this driver if esp-idf-version > 4 && SOC_TEMP_SENSOR_SUPPORTED |
Only includes the header for driver implemented in esp-idf v5+ At the time of writing following ESP variants are supported by the driver ESP32{S2,S3,C2,C3,C6,H2}
@GamerBene19 @Vollbrecht Is there anything remaining to do here? Still marked as "Draft"? |
The hal driver is not finished but this one can be merged under the constraint that the SOC_ flags gets passed through from the build-system, |
Wouldn't the tests have failed if that wasn't the case? If not how could one verify that? |
@GamerBene19 can you mark this PR as ready so that I can merge? Thanks. |
Button was right in front of me. |
Prerequisite for getting the internal temperature sensor in various ESP32 chips working.
Also see this issue over in esp-idf-hal: esp-rs/esp-idf-hal#333