Skip to content

Commit 823c51f

Browse files
committed
manifest: Update sdk-zephyr and nrfxlib revision and align to new API
Updated the hal_nordic revision and adjusted the code base to use multi-instance DPPI API. Certain applications have to explicitly enable nrfx_dppi and nrfx_ppib support with Kconfigs. Updated the nrfxlib revision to add the softdevice_controller include paths globally. Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 19945a6 commit 823c51f

24 files changed

+74
-52
lines changed

applications/nrf5340_audio/src/modules/audio_sync_timer.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ static void rtc_isr_handler(nrfx_rtc_int_type_t int_type)
144144
static int audio_sync_timer_init(void)
145145
{
146146
nrfx_err_t ret;
147+
nrfx_dppi_t dppi = NRFX_DPPI_INSTANCE(0);
147148

148149
ret = nrfx_timer_init(&audio_sync_hf_timer_instance, &cfg, unused_timer_isr_handler);
149150
if (ret - NRFX_ERROR_BASE_NUM) {
@@ -161,7 +162,7 @@ static int audio_sync_timer_init(void)
161162
nrfx_rtc_overflow_enable(&audio_sync_lf_timer_instance, true);
162163

163164
/* Initialize capturing of I2S frame start event timestamps */
164-
ret = nrfx_dppi_channel_alloc(&dppi_channel_i2s_frame_start);
165+
ret = nrfx_dppi_channel_alloc(&dppi, &dppi_channel_i2s_frame_start);
165166
if (ret - NRFX_ERROR_BASE_NUM) {
166167
LOG_ERR("nrfx DPPI channel alloc error (I2S frame start): %d", ret);
167168
return -ENOMEM;
@@ -177,14 +178,14 @@ static int audio_sync_timer_init(void)
177178
dppi_channel_i2s_frame_start);
178179

179180
nrf_i2s_publish_set(NRF_I2S0, NRF_I2S_EVENT_FRAMESTART, dppi_channel_i2s_frame_start);
180-
ret = nrfx_dppi_channel_enable(dppi_channel_i2s_frame_start);
181+
ret = nrfx_dppi_channel_enable(&dppi, dppi_channel_i2s_frame_start);
181182
if (ret - NRFX_ERROR_BASE_NUM) {
182183
LOG_ERR("nrfx DPPI channel enable error (I2S frame start): %d", ret);
183184
return -EIO;
184185
}
185186

186187
/* Initialize capturing of current timestamps */
187-
ret = nrfx_dppi_channel_alloc(&dppi_channel_curr_time_capture);
188+
ret = nrfx_dppi_channel_alloc(&dppi, &dppi_channel_curr_time_capture);
188189
if (ret - NRFX_ERROR_BASE_NUM) {
189190
LOG_ERR("nrfx DPPI channel alloc error (I2S frame start) - Return value: %d", ret);
190191
return -ENOMEM;
@@ -200,14 +201,14 @@ static int audio_sync_timer_init(void)
200201

201202
nrf_egu_publish_set(NRF_EGU0, NRF_EGU_EVENT_TRIGGERED0, dppi_channel_curr_time_capture);
202203

203-
ret = nrfx_dppi_channel_enable(dppi_channel_curr_time_capture);
204+
ret = nrfx_dppi_channel_enable(&dppi, dppi_channel_curr_time_capture);
204205
if (ret - NRFX_ERROR_BASE_NUM) {
205206
LOG_ERR("nrfx DPPI channel enable error (I2S frame start) - Return value: %d", ret);
206207
return -EIO;
207208
}
208209

209210
/* Initialize functionality for synchronization between APP and NET core */
210-
ret = nrfx_dppi_channel_alloc(&dppi_channel_rtc_start);
211+
ret = nrfx_dppi_channel_alloc(&dppi, &dppi_channel_rtc_start);
211212
if (ret - NRFX_ERROR_BASE_NUM) {
212213
LOG_ERR("nrfx DPPI channel alloc error (timer clear): %d", ret);
213214
return -ENOMEM;
@@ -222,14 +223,14 @@ static int audio_sync_timer_init(void)
222223
NRF_IPC_CHANNEL_4);
223224
nrf_ipc_publish_set(NRF_IPC, AUDIO_SYNC_TIMER_NET_APP_IPC_EVT, dppi_channel_rtc_start);
224225

225-
ret = nrfx_dppi_channel_enable(dppi_channel_rtc_start);
226+
ret = nrfx_dppi_channel_enable(&dppi, dppi_channel_rtc_start);
226227
if (ret - NRFX_ERROR_BASE_NUM) {
227228
LOG_ERR("nrfx DPPI channel enable error (timer clear): %d", ret);
228229
return -EIO;
229230
}
230231

231232
/* Initialize functionality for synchronization between RTC and TIMER */
232-
ret = nrfx_dppi_channel_alloc(&dppi_channel_timer_sync_with_rtc);
233+
ret = nrfx_dppi_channel_alloc(&dppi, &dppi_channel_timer_sync_with_rtc);
233234
if (ret - NRFX_ERROR_BASE_NUM) {
234235
LOG_ERR("nrfx DPPI channel alloc error (timer clear): %d", ret);
235236
return -ENOMEM;
@@ -242,7 +243,7 @@ static int audio_sync_timer_init(void)
242243

243244
nrfx_rtc_tick_enable(&audio_sync_lf_timer_instance, false);
244245

245-
ret = nrfx_dppi_channel_enable(dppi_channel_timer_sync_with_rtc);
246+
ret = nrfx_dppi_channel_enable(&dppi, dppi_channel_timer_sync_with_rtc);
246247
if (ret - NRFX_ERROR_BASE_NUM) {
247248
LOG_ERR("nrfx DPPI channel enable error (timer clear): %d", ret);
248249
return -EIO;

samples/bluetooth/conn_time_sync/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf

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

77
CONFIG_NRFX_TIMER0=y
88
CONFIG_NRFX_RTC0=y
9-
CONFIG_NRFX_DPPI=y
9+
CONFIG_NRFX_GPPI=y

samples/bluetooth/conn_time_sync/boards/nrf5340dk_nrf5340_cpuapp.conf

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

77
CONFIG_NRFX_TIMER0=y
88
CONFIG_NRFX_RTC0=y
9-
CONFIG_NRFX_DPPI=y
9+
CONFIG_NRFX_GPPI=y

samples/bluetooth/conn_time_sync/boards/nrf54l15dk_nrf54l15_cpuapp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
CONFIG_NRFX_DPPI=y
7+
CONFIG_NRFX_GPPI=y
88
CONFIG_BT_RX_STACK_SIZE=2048

samples/bluetooth/conn_time_sync/boards/nrf54l15pdk_nrf54l15_cpuapp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
CONFIG_NRFX_DPPI=y
7+
CONFIG_NRFX_GPPI=y
88
CONFIG_BT_RX_STACK_SIZE=2048

samples/bluetooth/direct_test_mode/boards/nrf5340dk_nrf5340_cpunet.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ CONFIG_IPC_SERVICE=y
99
CONFIG_IPC_SERVICE_BACKEND_RPMSG=y
1010
CONFIG_MBOX=y
1111

12-
CONFIG_NRFX_DPPI=y
12+
CONFIG_NRFX_GPPI=y
1313

1414
CONFIG_HEAP_MEM_POOL_SIZE=4096

samples/bluetooth/direct_test_mode/boards/nrf5340dk_nrf5340_cpunet_hci.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CONFIG_IPC_SERVICE=y
88
CONFIG_IPC_SERVICE_BACKEND_RPMSG=y
99
CONFIG_MBOX=y
1010

11-
CONFIG_NRFX_DPPI=y
11+
CONFIG_NRFX_GPPI=y
1212

1313
CONFIG_HEAP_MEM_POOL_SIZE=4096
1414

samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l15_cpuapp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ CONFIG_NRFX_TIMER2=n
1212
# Use necessary peripherals
1313
CONFIG_NRFX_TIMER20=y
1414
CONFIG_NRFX_TIMER10=y
15-
CONFIG_NRFX_DPPI=y
15+
CONFIG_NRFX_GPPI=y

samples/bluetooth/direct_test_mode/boards/nrf54l15pdk_nrf54l15_cpuapp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ CONFIG_NRFX_TIMER2=n
1212
# Use necessary peripherals
1313
CONFIG_NRFX_TIMER20=y
1414
CONFIG_NRFX_TIMER10=y
15-
CONFIG_NRFX_DPPI=y
15+
CONFIG_NRFX_GPPI=y

samples/bluetooth/iso_time_sync/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf

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

77
CONFIG_NRFX_TIMER0=y
88
CONFIG_NRFX_RTC0=y
9-
CONFIG_NRFX_DPPI=y
9+
CONFIG_NRFX_GPPI=y

0 commit comments

Comments
 (0)