Hi,
I would like to add new functions in the different machine_xxx.c but build doesn't work if I add a .h from esp-idf/components directory.
For example, if I had #include "esp_adc_cal.h" in machine_adc.c, buid command return this error :
fatal error: esp_adc_cal.h: No such file or directory
Without modifications, microPython for ESP32 build work perfectly.
Many thanks for your help.
unable to include .h files from ESP-IDF components directory
Re: unable to include .h files from ESP-IDF components directory
Just an idea, have you tried the following snippet:
This mirrors what happens for rmt: one includes driver/rmt.h which actually includes the file found at component/driver/include/rmt.h in the esp-idf folder. I cannot test this at the moment, so this is just an idea...
Code: Select all
#include esp_adc_cal/esp_adc_cal.h