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!
header file for rtc_module.c
Re: header file for rtc_module.c
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
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
-
- Posts: 9
- Joined: Tue Dec 20, 2016 7:24 am
Re: header file for rtc_module.c
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
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
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.
Who is online
Users browsing this forum: Google [Bot] and 107 guests