Unable to add certain components in custom library
Posted: Sun May 03, 2020 3:36 am
I am trying to add my own library as a component in the components directory. I am unable to add certain built in esp if components that my library uses. Here are the include statements in my .c file.
#include "esp_log.h"
#include "driver/gpio.h"
#include "driver/adc.h"
#include "esp_adc_cal.h"
The first three include statements work without any error. However build fails as the esp_adc_cal.h file is found.
I get the following error:
../components/ec_sensor/ec_sensor.c:11:10: fatal error: esp_adc_cal.h: No such file or directory
#include "esp_adc_cal.h"
^~~~~~~~~~~~~~~
compilation terminated.
I get the same error for nvs.h. The header file is not found during the build process.
Any help would be appreciated, I am new to the ESP 32.
#include "esp_log.h"
#include "driver/gpio.h"
#include "driver/adc.h"
#include "esp_adc_cal.h"
The first three include statements work without any error. However build fails as the esp_adc_cal.h file is found.
I get the following error:
../components/ec_sensor/ec_sensor.c:11:10: fatal error: esp_adc_cal.h: No such file or directory
#include "esp_adc_cal.h"
^~~~~~~~~~~~~~~
compilation terminated.
I get the same error for nvs.h. The header file is not found during the build process.
Any help would be appreciated, I am new to the ESP 32.