Skip to content

Commit 35199ef

Browse files
committed
zephyr: add rmt support
Add expected source files to CMakeLists.txt for each relevant targets. Signed-off-by: Joel Guittet <joelguittet@gmail.com>
1 parent 1980701 commit 35199ef

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
lines changed

zephyr/esp32/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ if(CONFIG_SOC_SERIES_ESP32)
221221
../../components/driver/gpio/rtc_io.c
222222
)
223223

224+
zephyr_sources_ifdef(
225+
CONFIG_RMT_ESP32
226+
../../components/hal/rmt_hal.c
227+
../../components/hal/gpio_hal.c
228+
../../components/driver/gpio/gpio.c
229+
../../components/driver/gpio/rtc_io.c
230+
../../components/soc/esp32/rmt_periph.c
231+
)
232+
224233
if(CONFIG_PM OR CONFIG_POWEROFF)
225234
zephyr_sources(
226235
../../components/driver/gpio/gpio.c

zephyr/esp32c3/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,15 @@ if(CONFIG_SOC_SERIES_ESP32C3)
203203
../../components/hal/ledc_hal.c
204204
)
205205

206+
zephyr_sources_ifdef(
207+
CONFIG_RMT_ESP32
208+
../../components/hal/rmt_hal.c
209+
../../components/hal/gpio_hal.c
210+
../../components/driver/gpio/gpio.c
211+
../../components/driver/gpio/rtc_io.c
212+
../../components/soc/esp32c3/rmt_periph.c
213+
)
214+
206215
if(CONFIG_PM OR CONFIG_POWEROFF)
207216
zephyr_sources(
208217
../../components/esp_hw_support/sleep_gpio.c

zephyr/esp32c6/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ if(CONFIG_SOC_SERIES_ESP32C6)
179179
)
180180
endif()
181181

182+
zephyr_sources_ifdef(
183+
CONFIG_RMT_ESP32
184+
../../components/hal/rmt_hal.c
185+
../../components/hal/gpio_hal.c
186+
../../components/driver/gpio/gpio.c
187+
../../components/driver/gpio/rtc_io.c
188+
../../components/soc/esp32c6/rmt_periph.c
189+
)
190+
182191
if(CONFIG_PM OR CONFIG_POWEROFF)
183192
zephyr_sources(
184193
../../components/driver/gpio/gpio.c

zephyr/esp32h2/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,15 @@ if(CONFIG_SOC_SERIES_ESP32H2)
341341
../../components/hal/pcnt_hal.c
342342
)
343343

344+
zephyr_sources_ifdef(
345+
CONFIG_RMT_ESP32
346+
../../components/hal/rmt_hal.c
347+
../../components/hal/gpio_hal.c
348+
../../components/driver/gpio/gpio.c
349+
../../components/driver/gpio/rtc_io.c
350+
../../components/soc/esp32h2/rmt_periph.c
351+
)
352+
344353
if(CONFIG_PM OR CONFIG_POWEROFF)
345354
zephyr_sources(
346355
../../components/driver/gpio/gpio.c

zephyr/esp32s2/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ if(CONFIG_SOC_SERIES_ESP32S2)
241241
endif()
242242
endif()
243243

244+
zephyr_sources_ifdef(
245+
CONFIG_RMT_ESP32
246+
../../components/hal/rmt_hal.c
247+
../../components/hal/gpio_hal.c
248+
../../components/driver/gpio/gpio.c
249+
../../components/driver/gpio/rtc_io.c
250+
../../components/soc/esp32s2/rmt_periph.c
251+
)
252+
244253
if(CONFIG_PM OR CONFIG_POWEROFF)
245254
zephyr_sources(
246255
../../components/driver/gpio/gpio.c

zephyr/esp32s3/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ if(CONFIG_SOC_SERIES_ESP32S3)
274274
../../components/hal/lcd_hal.c
275275
)
276276

277+
zephyr_sources_ifdef(
278+
CONFIG_RMT_ESP32
279+
../../components/hal/rmt_hal.c
280+
../../components/hal/gpio_hal.c
281+
../../components/driver/gpio/gpio.c
282+
../../components/driver/gpio/rtc_io.c
283+
../../components/soc/esp32s3/rmt_periph.c
284+
)
285+
277286
if(CONFIG_PM OR CONFIG_POWEROFF)
278287
zephyr_sources(
279288
../../components/driver/gpio/gpio.c

0 commit comments

Comments
 (0)