diff --git a/samples/boards/esp32/deep_sleep/Kconfig b/samples/boards/esp32/deep_sleep/Kconfig index 40ce68c076b..3cde5e740d6 100644 --- a/samples/boards/esp32/deep_sleep/Kconfig +++ b/samples/boards/esp32/deep_sleep/Kconfig @@ -5,7 +5,7 @@ mainmenu "Espressif Deep Sleep demo" config EXAMPLE_EXT1_WAKEUP bool "Enable wakeup from GPIO" - depends on !SOC_ESP32C3 + depends on !SOC_SERIES_ESP32C3 help This option enables wake up from deep sleep from GPIO2 and GPIO4. They should be connected to LOW to avoid floating pins. @@ -14,7 +14,7 @@ config EXAMPLE_EXT1_WAKEUP config EXAMPLE_GPIO_WAKEUP bool "Enable wakeup from GPIO" - depends on SOC_ESP32C3 + depends on SOC_SERIES_ESP32C3 help This option enables wake up from GPIO, only GPIO0~5 can be used to wake up. Be aware that when low level is used to trigger wakeup, diff --git a/samples/boards/esp32/flash_encryption/src/main.c b/samples/boards/esp32/flash_encryption/src/main.c index 414376495ca..07799dfe21a 100644 --- a/samples/boards/esp32/flash_encryption/src/main.c +++ b/samples/boards/esp32/flash_encryption/src/main.c @@ -10,7 +10,8 @@ #include #include -#include +#include +#include #include #include @@ -45,7 +46,7 @@ int main(void) /* read flash content without decrypting content */ memset(buffer, 0, sizeof(buffer)); - spi_flash_read(address, &buffer, sizeof(buffer)); + esp_flash_read(NULL, &buffer, address, sizeof(buffer)); LOG_HEXDUMP_INF(buffer, sizeof(buffer), "FLASH RAW DATA (Encrypted)"); /* read flash content and decrypt */ diff --git a/samples/boards/esp32/flash_memory_mapped/src/main.c b/samples/boards/esp32/flash_memory_mapped/src/main.c index d836bb34816..f6124107bfe 100644 --- a/samples/boards/esp32/flash_memory_mapped/src/main.c +++ b/samples/boards/esp32/flash_memory_mapped/src/main.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/samples/boards/esp32/light_sleep/src/main.c b/samples/boards/esp32/light_sleep/src/main.c index 4fee6bf6548..50cb920d159 100644 --- a/samples/boards/esp32/light_sleep/src/main.c +++ b/samples/boards/esp32/light_sleep/src/main.c @@ -8,7 +8,8 @@ #include #include #include -#include "esp_sleep.h" +#include +#include /* Most development boards have "boot" button attached to GPIO0. * You can also change this to another pin.