Noticed that even though i am using the same IDF version 4.1.2/
The driver include file and .c file on github vs vscode is not the same.
On VSCODE IDF extension i cannot find some of the function declarations and definitions that i see on github.
Whats the reason for this ?
I am interested in :
esp_err_t i2c_master_write_to_device part of driver/i2c.h
esp_err_t i2c_master_write_read_device
These are not available on VSCODE IDF
Driver I2C Difference github vs vscode
Driver I2C Difference github vs vscode
- Attachments
-
- i2c.PNG (18.15 KiB) Viewed 4172 times
-
- Posts: 53
- Joined: Sun Aug 29, 2021 1:50 pm
Re: Driver I2C Difference github vs vscode
I also find the i2c_master_write_read_device function seem missing in the library. I have manual inlude the C:/.espressif/esp-mdf/esp-idf/components/driver/include/ but seem no use.
Re: Driver I2C Difference github vs vscode
Those functions were only added recently in master branch
-
- Posts: 53
- Joined: Sun Aug 29, 2021 1:50 pm
Re: Driver I2C Difference github vs vscode
I have copy all the content in the driver in \.espressif\esp-mdf\esp-idf\components\driver to project folder and somehow it work. Is it normal?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: Driver I2C Difference github vs vscode
XiotSamuel wrote: ↑Thu Sep 02, 2021 10:02 amI have copy all the content in the driver in \.espressif\esp-mdf\esp-idf\components\driver to project folder and somehow it work. Is it normal?
If you copy an IDF component into your project, the compiler will (by default) pick that one, which allows you to override IDF components. For the reference, this principle is described in the build system manual.
Who is online
Users browsing this forum: Baidu [Spider] and 90 guests