Skip to content
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

Updated ADC Implementation to support ESP-IDF 5.0 #89

Merged
merged 7 commits into from
Feb 1, 2024

Conversation

SuperChamp234
Copy link
Member

@SuperChamp234 SuperChamp234 commented Jan 2, 2024

I am issuing this PR to update our ADC Implementation for ESP-IDF 5.0.

As per pull request #87 , I have rewritten the ADC implementation to use methods from the new ESP-IDF 5.0 library.

It makes use of the esp_adc component instead of the depreciated esp_adc_cal.

The new ADC methods require the use of an adc_handle_t when trying to access the ADC object and perform actions.

Please review and let me know the changes, thank you.

CMakeLists.txt Outdated Show resolved Hide resolved
include/adc.h Outdated Show resolved Hide resolved
include/adc.h Outdated Show resolved Hide resolved
src/adc.c Outdated Show resolved Hide resolved
src/adc.c Show resolved Hide resolved
src/adc.c Show resolved Hide resolved
src/adc.c Outdated Show resolved Hide resolved
src/adc.c Outdated Show resolved Hide resolved
include/sra_board.h Outdated Show resolved Hide resolved
SuperChamp234 added a commit to SuperChamp234/sra-board-component that referenced this pull request Jan 28, 2024
@SuperChamp234
Copy link
Member Author

Hi @RISHI27-dot ,
I have made the changes as requested, please review.

SuperChamp234 added a commit to SuperChamp234/sra-board-component that referenced this pull request Jan 30, 2024
src/i2cdev.c Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
examples/lsa/main/main.c Outdated Show resolved Hide resolved
include/adc.h Outdated Show resolved Hide resolved
include/lsa.h Outdated Show resolved Hide resolved
src/adc.c Outdated Show resolved Hide resolved
src/lsa.c Outdated Show resolved Hide resolved
…C Read impl remaining.

Completed ADC Read method implementation

Changed ADC Bitwidth to 12, and removed extra config files while adding
gitignore rules for them.

Updated LSA example
@RISHI27-dot RISHI27-dot merged commit c9180ac into SRA-VJTI:main Feb 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants