Giter VIP home page Giter VIP logo

Comments (4)

Vollbrecht avatar Vollbrecht commented on July 18, 2024 1

to clarify you cant directly do something like esp_idf_comp_esp_adc_cal_enabled in the sdkconfig, only something that would trigger this to enable it if it can be enabled. For more information about calibrating you need to read the esp-idf v4 adc guide and understand what they do there + how you potential use the fuse system to burn calibration. You will find there, they list the different sdkconfigs that enables them( like ESP_ADC_CAL_VAL_EFUSE_VREF)

Regarding the functionality you found, you cant because what you are linked is part of the newer driver api introduced in esp-idf v5.

from esp-idf-hal.

Vollbrecht avatar Vollbrecht commented on July 18, 2024 1

To checkout what configuration currently are all enabled you can use cargo rustc -- --print cfg in your project dir

from esp-idf-hal.

Vollbrecht avatar Vollbrecht commented on July 18, 2024

This flags usually gets automatically set if the upstream esp-idf feature is there and enabled. In this case it is dependend on a feature in esp-idf v4 . Since esp-idf v5 they deprecated the api and came up with a new one and i think they also renamed some of the underlying configs.

So if you are using esp-idf v4 you should be able to enable it via sdkconfig. For esp-idf v5 we currently don't have the renamed flags exported i think that are used in the v5 deprecated api. For v5 we have the oneshot and continuous driver apis that were introduced. We automatically instantiate the calibration for oneshot in that api for you if its available here. For more information about the underlying general api you can checkout the esp-idf api description

from esp-idf-hal.

morteza-norouzi avatar morteza-norouzi commented on July 18, 2024

About this part

upstream esp-idf feature is there and enabled.
What do you mean ( Which feature should be activated in upper layer . I tried "esp_idf_comp_esp_adc_cal_enabled" but it was not a feature to be selectable . )

And about this part :

So if you are using esp-idf v4 you should be able to enable it via sdkconfig

Yes we are working on v4 and I set "esp_idf_comp_esp_adc_cal_enabled=y" in sdkconfig . but nothing changed .
It's good to point We are using esp32s3 (Xtensa) and it seems in v4 there is not good support for adc calibration for that .
And at this point we can't upgrade esp-idf version so :
I know there is some functionality in c driver here "https://github.com/espressif/esp-idf/blob/5d8fb28/components/esp_adc/include/esp_adc/adc_cali_scheme.h"
How can I bring these functionality to my rust project and call it from rust ? should i add something to build system parts ? if yes where and how ?

from esp-idf-hal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.