From 9169ced4cdfa8e2d81d4b270c6c9135486ae3405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Thu, 17 Oct 2024 10:25:52 +0200 Subject: [PATCH] fixup! align to new DPPI API --- subsys/esb/esb_dppi.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/subsys/esb/esb_dppi.c b/subsys/esb/esb_dppi.c index 17dc6768a876..f5f7a3dc73c8 100644 --- a/subsys/esb/esb_dppi.c +++ b/subsys/esb/esb_dppi.c @@ -225,44 +225,46 @@ int esb_ppi_init(void) #else - err = nrfx_dppi_channel_alloc(&radio_address_timer_stop); + nrfx_dppi_t dppi = NRFX_DPPI_INSTANCE(0); + + err = nrfx_dppi_channel_alloc(&dppi, &radio_address_timer_stop); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_alloc(&timer_compare0_radio_disable); + err = nrfx_dppi_channel_alloc(&dppi, &timer_compare0_radio_disable); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_alloc(&timer_compare1_radio_txen); + err = nrfx_dppi_channel_alloc(&dppi, &timer_compare1_radio_txen); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_alloc(&disabled_phy_end_egu); + err = nrfx_dppi_channel_alloc(&dppi, &disabled_phy_end_egu); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_alloc(&egu_timer_start); + err = nrfx_dppi_channel_alloc(&dppi, &egu_timer_start); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_alloc(&egu_ramp_up); + err = nrfx_dppi_channel_alloc(&dppi, &egu_ramp_up); if (err != NRFX_SUCCESS) { goto error; } if (IS_ENABLED(CONFIG_ESB_NEVER_DISABLE_TX)) { - err = nrfx_dppi_channel_alloc(&radio_end_timer_start); + err = nrfx_dppi_channel_alloc(&dppi, &radio_end_timer_start); if (err != NRFX_SUCCESS) { goto error; } } - err = nrfx_dppi_group_alloc(&ramp_up_dppi_group); + err = nrfx_dppi_group_alloc(&dppi, &ramp_up_dppi_group); if (err != NRFX_SUCCESS) { LOG_ERR("gppi_group_alloc failed with: %d\n", err); return -ENODEV; @@ -315,44 +317,46 @@ void esb_ppi_deinit(void) #else - err = nrfx_dppi_channel_free(radio_address_timer_stop); + nrfx_dppi_t dppi = NRFX_DPPI_INSTANCE(0); + + err = nrfx_dppi_channel_free(&dppi, radio_address_timer_stop); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_free(timer_compare0_radio_disable); + err = nrfx_dppi_channel_free(&dppi, timer_compare0_radio_disable); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_free(timer_compare1_radio_txen); + err = nrfx_dppi_channel_free(&dppi, timer_compare1_radio_txen); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_free(disabled_phy_end_egu); + err = nrfx_dppi_channel_free(&dppi, disabled_phy_end_egu); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_free(egu_timer_start); + err = nrfx_dppi_channel_free(&dppi, egu_timer_start); if (err != NRFX_SUCCESS) { goto error; } - err = nrfx_dppi_channel_free(egu_ramp_up); + err = nrfx_dppi_channel_free(&dppi, egu_ramp_up); if (err != NRFX_SUCCESS) { goto error; } if (IS_ENABLED(CONFIG_ESB_NEVER_DISABLE_TX)) { - err = nrfx_dppi_channel_free(radio_end_timer_start); + err = nrfx_dppi_channel_free(&dppi, radio_end_timer_start); if (err != NRFX_SUCCESS) { goto error; } } - err = nrfx_dppi_group_free(ramp_up_dppi_group); + err = nrfx_dppi_group_free(&dppi, ramp_up_dppi_group); if (err != NRFX_SUCCESS) { goto error; }