添加rtc_gpio_isolate (),rtc_gpio_hold_dis()报错

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

添加rtc_gpio_isolate (),rtc_gpio_hold_dis()报错

Postby fst202130609 » Thu Jan 20, 2022 5:52 am

这是错误log:
implicit declaration of function 'rtc_gpio_hold_dis'; did you mean 'gpio_hold_dis'? [-Werror=implicit-function-declaration]
rtc_gpio_hold_dis(0);

以下2行代码添加头文件之后还是报错
#include "driver/rtc_io.h"
#include "hal/rtc_io_hal.h"

我声明2个函数,还是报错

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 添加rtc_gpio_isolate (),rtc_gpio_hold_dis()报错

Postby ESP_ICY » Thu Jan 20, 2022 6:41 am

如果是ESP32-C3芯片,C3的RTC_GPIO没有这个功能,用不了rtc_gpio_isolate 这个函数

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

Re: 添加rtc_gpio_isolate (),rtc_gpio_hold_dis()报错

Postby fst202130609 » Thu Jan 20, 2022 8:30 am

那我用什么函数来把io口关闭,不会引起电流的变化,减少低功耗

Who is online

Users browsing this forum: No registered users and 66 guests