header file for rtc_module.c

TESTTHISONE
Posts: 9
Joined: Tue Dec 20, 2016 7:24 am

header file for rtc_module.c

Postby TESTTHISONE » Wed Jan 04, 2017 8:05 am

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!

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: header file for rtc_module.c

Postby ESP_Angus » Wed Jan 04, 2017 8:38 pm

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

TESTTHISONE
Posts: 9
Joined: Tue Dec 20, 2016 7:24 am

Re: header file for rtc_module.c

Postby TESTTHISONE » Thu Jan 05, 2017 7:35 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: header file for rtc_module.c

Postby ESP_Angus » Thu Jan 05, 2017 7:57 am

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: ESP_Roland and 135 guests