Skip to content

Commit 28c1a5a

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 c8be109 commit 28c1a5a

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
@@ -181,6 +181,16 @@ if(DEFINED uicr_path)
181181
endif()
182182
endif()
183183

184+
dt_nodelabel(tampc_path NODELABEL "tampc")
185+
if(DEFINED tampc_path)
186+
dt_prop(swd_pins_as_gpios PATH ${tampc_path} PROPERTY "swd-pins-as-gpios")
187+
if(${swd_pins_as_gpios})
188+
zephyr_library_compile_definitions(
189+
NRF_CONFIG_SWD_PINS_AS_GPIOS
190+
)
191+
endif()
192+
endif()
193+
184194
if(CONFIG_SOC_NRF54L_CPUAPP_COMMON)
185195
# Ideally, hfpll should taken as a phandle from clocks property from cpu but it
186196
# seems that there is no such option in DT cmake functions. Assuming that nrf54l

0 commit comments

Comments
 (0)