Skip to content

Commit b21c009

Browse files
committed
all: Align to GPPI API tweaking
There are minor updates in GPPI API. Align in places that are affected. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 8cbee83 commit b21c009

File tree

20 files changed

+63
-41
lines changed

20 files changed

+63
-41
lines changed

applications/connectivity_bridge/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ CONFIG_UART_1_NRF_HW_ASYNC_TIMER=2
7373
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
7474
CONFIG_NRFX_UARTE=y
7575
CONFIG_NRFX_TIMER=y
76-
CONFIG_NRFX_PPI=y
76+
CONFIG_NRFX_GPPI=y
7777

7878
CONFIG_HW_ID_LIBRARY=y
7979
CONFIG_RESET_ON_FATAL_ERROR=y

lib/fem_al/fem_al.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static int radio_domain_nrfx_dppi_channel_alloc(uint8_t *channel)
361361
{
362362
int ch;
363363

364-
ch = nrfx_gppi_channel_alloc(nrfx_gppi_domain_id_get(RADIO_DOMAIN_NRF_DPPI), channel);
364+
ch = nrfx_gppi_channel_alloc(nrfx_gppi_domain_id_get(RADIO_DOMAIN_NRF_DPPI));
365365
if (ch < 0) {
366366
return ch;
367367
}

modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_sl_lptimer_grtc_hw_task.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void nrf_802154_platform_sl_lptimer_hw_task_local_domain_connections_clear(void)
227227
#elif defined(NRF54L_SERIES)
228228

229229
#include <helpers/nrfx_gppi.h>
230-
#include <helpers/nrfx_gppi_lumos.h>
230+
#include <soc/interconnect/nrfx_gppi_lumos.h>
231231

232232
/* To trigger RADIO.TASKS_x with GRTC.EVENT_CAPTURE{?}, the following connection chain must be
233233
* created:

modules/nrfxlib/nrf_802154/sl/platform/nrf_802154_platform_timestamper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void nrf_802154_platform_timestamper_local_domain_connections_setup(uint32_t dpp
228228
*/
229229

230230
#include <helpers/nrfx_gppi.h>
231-
#include <helpers/nrfx_gppi_lumos.h>
231+
#include <soc/interconnect/nrfx_gppi_lumos.h>
232232

233233
static nrfx_gppi_handle_t rad_peri_handle;
234234

samples/bluetooth/conn_time_sync/boards/nrf52833dk_nrf52833.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
CONFIG_NRFX_TIMER=y
88
CONFIG_NRFX_RTC2=y
9-
CONFIG_NRFX_PPI=y

samples/bluetooth/conn_time_sync/boards/nrf52840dk_nrf52840.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
CONFIG_NRFX_TIMER=y
88
CONFIG_NRFX_RTC2=y
9-
CONFIG_NRFX_PPI=y

samples/bluetooth/conn_time_sync/src/controller_time_nrf52.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,18 @@ int config_egu_trigger_on_rtc_and_timer_match(void)
159159
uint32_t tep1 = nrf_egu_task_address_get(NRF_EGU0, NRF_EGU_TASK_TRIGGER0);
160160
int ret;
161161

162-
ret = nrfx_gppi_group_alloc(&eep0, 1, &group);
162+
ret = nrfx_gppi_group_alloc(nrfx_gppi_domain_id_get(eep0), &group);
163163
if (ret < 0) {
164164
printk("Failed allocating group\n");
165165
return ret;
166166
}
167167

168+
ret = nrfx_gppi_group_ep_add(group, eep0);
169+
if (ret < 0) {
170+
printk("Failed attaching an event to the group\n");
171+
return ret;
172+
}
173+
168174
ret = nrfx_gppi_conn_alloc(eep0, nrfx_gppi_group_task_en_addr(group), &ppi_on_rtc_match);
169175
if (ret < 0) {
170176
printk("Failed allocating for RTC match\n");

samples/bluetooth/conn_time_sync/src/controller_time_nrf53_app.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,18 @@ int config_egu_trigger_on_rtc_and_timer_match(void)
130130
uint32_t tep1 = nrf_egu_task_address_get(NRF_EGU0, NRF_EGU_TASK_TRIGGER0);
131131
int ret;
132132

133-
ret = nrfx_gppi_group_alloc(&eep0, 1, &group);
133+
ret = nrfx_gppi_group_alloc(nrfx_gppi_domain_id_get(eep0), &group);
134134
if (ret < 0) {
135135
printk("Failed allocating group\n");
136136
return ret;
137137
}
138138

139+
ret = nrfx_gppi_group_ep_add(group, eep0);
140+
if (ret < 0) {
141+
printk("Failed attaching an event to the group\n");
142+
return ret;
143+
}
144+
139145
ret = nrfx_gppi_conn_alloc(eep0, nrfx_gppi_group_task_en_addr(group), &ppi_on_rtc_match);
140146
if (ret < 0) {
141147
printk("Failed allocating for RTC match\n");

samples/bluetooth/conn_time_sync/src/controller_time_nrf54.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ int controller_time_init(void)
1818
int ret;
1919

2020
ret = nrfx_grtc_channel_alloc(&grtc_channel);
21-
if (ret != NRFX_SUCCESS) {
22-
printk("Failed allocating GRTC channel (ret: %d)\n",
23-
ret - NRFX_ERROR_BASE_NUM);
24-
return -ENODEV;
21+
if (ret < 0) {
22+
printk("Failed allocating GRTC channel (ret: %d)\n", ret);
23+
return ret;
2524
}
2625

2726
nrf_grtc_sys_counter_compare_event_enable(NRF_GRTC, grtc_channel);

samples/bluetooth/iso_time_sync/boards/nrf52833dk_nrf52833.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
CONFIG_NRFX_TIMER=y
88
CONFIG_NRFX_RTC2=y
9-
CONFIG_NRFX_PPI=y

0 commit comments

Comments
 (0)