Skip to content

Commit cfc122c

Browse files
committed
esp32c2: move sleep source to common area
This file is needed globally to support deep-sleep call. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 82bc519 commit cfc122c

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

zephyr/esp32c2/CMakeLists.txt

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ if(CONFIG_SOC_SERIES_ESP32C2)
172172
endif()
173173

174174
if(CONFIG_PM OR CONFIG_POWEROFF)
175-
zephyr_sources(
176-
../../components/esp_hw_support/sleep_gpio.c
177-
../../components/esp_hw_support/sleep_event.c
178-
../../components/driver/gpio/rtc_io.c
179-
../../components/esp_hw_support/sleep_modem.c
180-
../../components/hal/rtc_io_hal.c
181-
../../components/driver/gpio/gpio.c
182-
../../components/esp_hw_support/sleep_cpu.c
183-
)
175+
zephyr_sources(
176+
../../components/esp_hw_support/sleep_gpio.c
177+
../../components/esp_hw_support/sleep_event.c
178+
../../components/driver/gpio/rtc_io.c
179+
../../components/esp_hw_support/sleep_modem.c
180+
../../components/hal/rtc_io_hal.c
181+
../../components/driver/gpio/gpio.c
182+
../../components/esp_hw_support/sleep_cpu.c
183+
)
184184
endif()
185185

186186
zephyr_sources_ifdef(
@@ -220,6 +220,7 @@ if(CONFIG_SOC_SERIES_ESP32C2)
220220
../../components/esp_hw_support/mac_addr.c
221221
../../components/esp_hw_support/periph_ctrl.c
222222
../../components/esp_hw_support/regi2c_ctrl.c
223+
../../components/esp_hw_support/sleep_modes.c
223224
../../components/esp_hw_support/sar_periph_ctrl_common.c
224225
../../components/esp_hw_support/port/esp_clk_tree_common.c
225226
../../components/esp_hw_support/port/${CONFIG_SOC_SERIES}/cpu_region_protect.c
@@ -349,10 +350,6 @@ if(CONFIG_SOC_SERIES_ESP32C2)
349350
../../components/esp_phy/src/phy_common.c
350351
)
351352

352-
zephyr_sources(
353-
../../components/esp_hw_support/sleep_modes.c
354-
)
355-
356353
if (CONFIG_ESP32_SW_COEXIST_ENABLE)
357354
if (CONFIG_BUILD_ONLY_NO_BLOBS)
358355
zephyr_sources(

0 commit comments

Comments
 (0)