Page 1 of 1
header file for rtc_module.c
Posted: Wed Jan 04, 2017 8:05 am
by TESTTHISONE
Hello, ESP32 team.
I am trying to use functions in "rtc_module.c" but I can't find its header file for it.
The functions I want to use are ADC such as "static esp_err_t adc1_pad_init(adc1_channel_t channel)"
Where can I refer to the functions in a header file?
Thank you in advance!
Re: header file for rtc_module.c
Posted: Wed Jan 04, 2017 8:38 pm
by ESP_Angus
Hi TTO,
The "static" functions are internal to the source file only, so you can't call these directly.
The header for ADC functions is in "
components/driver/include/driver/adc.h". Include the header as "#include <driver/adc.h>".
Other functions implemented in rtc_module.c are declared in "driver/rtc_io.h", "driver/touch_pad.h" and "driver/dac.h".
Angus
Re: header file for rtc_module.c
Posted: Thu Jan 05, 2017 7:35 am
by TESTTHISONE
Sorry, I did not look up the source file carefully. Everything I need was all there.
Unrelated to this post, may I ask you a question regarding BLE connection.
what does this warning mean?
>> smp_br_connect_callback is called on unexpected transport 2
Re: header file for rtc_module.c
Posted: Thu Jan 05, 2017 7:57 am
by ESP_Angus
I'm not sure the answer to the BLE question. Please post it as a new topic with some more context & details, one of the more BLE-savvy developers can hopefully look into it.