在esp32c3中使用esp_sleep_enable_ext1_wakeup()函数报错
Posted: Mon Jan 24, 2022 2:55 am
在程序中添加esp_sleep_enable_ext1_wakeup(ext_wakeup_pin_1_mask, ESP_EXT1_WAKEUP_ANY_HIGH);为啥会报错,在官网文档里也没看到有这个函数,报错原因:
implicit declaration of function 'esp_sleep_enable_ext1_wakeup'; did you mean 'esp_sleep_enable_wifi_wakeup'? [-Werror=implicit-function-declaration]
implicit declaration of function 'esp_sleep_enable_ext1_wakeup'; did you mean 'esp_sleep_enable_wifi_wakeup'? [-Werror=implicit-function-declaration]