-
Notifications
You must be signed in to change notification settings - Fork 227
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
feat: add support for internal temperature sensor (tsens) for esp32c6 and esp32c3 #2875
Conversation
99cf766
to
d8eed8c
Compare
d8eed8c
to
9e46483
Compare
0d6b2e7
to
5f033bf
Compare
Thanks for the PR! Overall this a nice PR, and pretty close already - just a few bits to iron out. |
4f36b6b
to
0f0bd2e
Compare
Thanks a lot for the feedback. I have addressed all the suggested changes/improvements mentioned and rebased with the latest changes. About adding a HIL test: I tried to add a deterministic test to ensure the sensor is properly configured and working. Thought about making a test that tries to heat up the CPU and test there was an increase in temperature, but couldn't reliably heat it up in my experiments. |
- Also add misc derives to multiple structs - Add power_up / power_down methods to TemperatureSensor - Enable ApbSarAdc via PeripheralGuard
0f0bd2e
to
ad3e44b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks a lot for the feedback! will keep it in mind, and looking forward to keep contributing :) |
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Added basic support for internal temperature sensor for esp32c6 and esp32c3. Starts paving the path to fix #2116
Next steps:
Testing
I created an example that measures internal chip temperature every second and prints it.
Any feedback is more than welcome, I'm very happy to start contributing to this amazing project!