Skip to content

Commit e01f3f3

Browse files
[nrf fromlist] modules: hal_nordic: nrfx: allow SWD pins as GPIOs
Added compile definition expected by nRF MDK that configures SWD pins as GPIOs. Upstream PR #: 99295 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 98c7cfe commit e01f3f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,16 @@ if(DEFINED uicr_path)
204204
endif()
205205
endif()
206206

207+
dt_nodelabel(tampc_path NODELABEL "tampc")
208+
if(DEFINED tampc_path)
209+
dt_prop(swd_pins_as_gpios PATH ${tampc_path} PROPERTY "swd-pins-as-gpios")
210+
if(${swd_pins_as_gpios})
211+
zephyr_library_compile_definitions(
212+
NRF_CONFIG_SWD_PINS_AS_GPIOS
213+
)
214+
endif()
215+
endif()
216+
207217
if(CONFIG_SOC_NRF54L_CPUAPP_COMMON)
208218
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
209219
# seems that there is no such option in DT cmake functions. Assuming that nrf54l

0 commit comments

Comments
 (0)