@@ -105,6 +105,10 @@ if(CONFIG_SOC_SERIES_ESP32C6)
105
105
../../components/mbedtls/port/include
106
106
107
107
../port/include/boot
108
+ ../../components/ulp/lp_core/include
109
+ ../../components/ulp/lp_core/lp_core/include
110
+ ../../components/ulp/lp_core/shared/include
111
+ ../../components/ulp/ulp_common/include
108
112
)
109
113
110
114
zephyr_link_libraries (
@@ -208,7 +212,8 @@ if(CONFIG_SOC_SERIES_ESP32C6)
208
212
)
209
213
endif ()
210
214
211
- zephyr_sources (
215
+ zephyr_sources_ifdef (
216
+ CONFIG_SOC_ESP32C6_HPCORE
212
217
213
218
../../components/soc/${CONFIG_SOC_SERIES}/gpio_periph.c
214
219
../../components/soc/${CONFIG_SOC_SERIES}/rtc_io_periph.c
@@ -300,6 +305,7 @@ if(CONFIG_SOC_SERIES_ESP32C6)
300
305
CONFIG_UART_ESP32
301
306
../../components/hal/uart_hal.c
302
307
../../components/hal/uart_hal_iram.c
308
+ ../../components/soc/${CONFIG_SOC_SERIES}/uart_periph.c
303
309
)
304
310
305
311
zephyr_sources_ifdef (
@@ -333,6 +339,33 @@ if(CONFIG_SOC_SERIES_ESP32C6)
333
339
../../components/efuse/${CONFIG_SOC_SERIES}/esp_efuse_utility.c
334
340
)
335
341
endif ()
342
+
343
+ if (CONFIG_SOC_ESP32C6_LPCORE )
344
+ zephyr_compile_definitions (IS_ULP_COCPU )
345
+ zephyr_ld_options ("-nostartfiles" )
346
+ zephyr_ld_options ("-Wl,--no-warn-rwx-segments" )
347
+ zephyr_ld_options ("-Wl,--gc-sections" )
348
+ endif ()
349
+
350
+ if (CONFIG_ULP_COPROC_ENABLED )
351
+ zephyr_sources_ifdef (
352
+ CONFIG_SOC_ESP32C6_HPCORE
353
+ ../../components/ulp/lp_core/lp_core.c
354
+ ../../components/ulp/lp_core/shared/ulp_lp_core_lp_timer_shared.c
355
+ ../../components/ulp/lp_core/shared/ulp_lp_core_memory_shared.c
356
+ ../../components/driver/gpio/rtc_io.c
357
+ ../../components/hal/rtc_io_hal.c
358
+ )
359
+
360
+ zephyr_sources_ifdef (
361
+ CONFIG_SOC_ESP32C6_LPCORE
362
+ ../../components/ulp/lp_core/lp_core/lp_core_interrupt.c
363
+ ../../components/ulp/lp_core/lp_core/lp_core_utils.c
364
+ ../../components/ulp/lp_core/shared/ulp_lp_core_lp_timer_shared.c
365
+ ../../components/ulp/lp_core/shared/ulp_lp_core_memory_shared.c
366
+ ../../components/hal/uart_hal_iram.c
367
+ )
368
+ endif ()
336
369
337
370
## shared WIFI/BT resources
338
371
if (CONFIG_BT OR CONFIG_WIFI_ESP32 )
0 commit comments