Skip to content

Commit d1409ee

Browse files
committed
mpsl: pin_debug: Fix MPSL_PIN_DEBUG for 54L series
This commit fixes issues introduced by a8f6947 - `passing argument 1 of 'nrfx_gppi_domain_id_get' makes integer from pointer without a cast` - Accessing wrong member of rad_resource - Wrong argument order calling nrfx_gppi_ep_attach() Fix was verified on a 54l15dk. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 77fbeeb commit d1409ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subsys/mpsl/pin_debug/mpsl_pin_debug_nrf54.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ LOG_MODULE_REGISTER(mpsl_radio_pin_debug, CONFIG_MPSL_LOG_LEVEL);
2222
static int m_ppi_config(void)
2323
{
2424
nrfx_gpiote_t *gpiote = &GPIOTE_NRFX_INST_BY_NODE(GPIOTE_NODE);
25-
uint32_t rad_domain = nrfx_gppi_domain_id_get(NRF_DPPIC10);
26-
uint32_t dst_domain = nrfx_gppi_domain_id_get(gpiote->p_reg);
25+
uint32_t rad_domain = nrfx_gppi_domain_id_get((uint32_t)NRF_DPPIC10);
26+
uint32_t dst_domain = nrfx_gppi_domain_id_get((uint32_t)gpiote->p_reg);
2727
nrfx_gppi_resource_t rad_resource;
2828
nrfx_gppi_handle_t handle;
2929
uint32_t tep[4];
@@ -43,15 +43,15 @@ static int m_ppi_config(void)
4343
CONFIG_MPSL_PIN_DEBUG_RADIO_ADDRESS_AND_END_PIN);
4444
tep[3] = nrfx_gpiote_clr_task_address_get(gpiote,
4545
CONFIG_MPSL_PIN_DEBUG_RADIO_ADDRESS_AND_END_PIN);
46-
rad_resource.rad_domain = nrfx_gppi_domain_id_get(NRF_DPPIC10);
46+
rad_resource.domain_id = nrfx_gppi_domain_id_get((uint32_t)NRF_DPPIC10);
4747

4848
for (size_t i = 0; i < ARRAY_SIZE(pub_ch); i++) {
4949
rad_resource.channel = pub_ch[i];
5050
err = nrfx_gppi_ext_conn_alloc(rad_domain, dst_domain, &handle, &rad_resource);
5151
if (err < 0) {
5252
return err;
5353
}
54-
nrfx_gppi_ep_attach(handle, tep[i]);
54+
nrfx_gppi_ep_attach(tep[i], handle);
5555
/* Channel in radio domain is not enabled by this function. */
5656
nrfx_gppi_conn_enable(handle);
5757
}

0 commit comments

Comments
 (0)