Skip to content

Commit bf66012

Browse files
e-rknashif
authored andcommitted
modules: hal_nordic: Enable nrfx_ppib drivers
The new nrfx_ppib driver can now be enabled, when the corrensponding device tree node has the okay status. Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 61d7293 commit bf66012

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_NVMC ${SRC_DIR}/nrfx_nvmc.c)
121121
zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c)
122122
zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c)
123123
zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c)
124+
zephyr_library_sources_ifdef(CONFIG_NRFX_PPIB ${SRC_DIR}/nrfx_ppib.c)
124125
zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c)
125126
zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c)
126127
zephyr_library_sources_ifdef(CONFIG_NRFX_QSPI ${SRC_DIR}/nrfx_qspi.c)

modules/hal_nordic/nrfx/Kconfig

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,49 @@ config NRFX_PPI
259259
bool "PPI allocator"
260260
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
261261

262+
config NRFX_PPIB
263+
bool
264+
265+
config NRFX_PPIB00
266+
bool "PPIB00 driver instance"
267+
depends on $(dt_nodelabel_has_compat,ppib00,$(DT_COMPAT_NORDIC_NRF_PPIB))
268+
select NRFX_PPIB
269+
270+
config NRFX_PPIB01
271+
bool "PPIB01 driver instance"
272+
depends on $(dt_nodelabel_has_compat,ppib01,$(DT_COMPAT_NORDIC_NRF_PPIB))
273+
select NRFX_PPIB
274+
275+
config NRFX_PPIB10
276+
bool "PPIB10 driver instance"
277+
depends on $(dt_nodelabel_has_compat,ppib10,$(DT_COMPAT_NORDIC_NRF_PPIB))
278+
select NRFX_PPIB
279+
280+
config NRFX_PPIB11
281+
bool "PPIB11 driver instance"
282+
depends on $(dt_nodelabel_has_compat,ppib11,$(DT_COMPAT_NORDIC_NRF_PPIB))
283+
select NRFX_PPIB
284+
285+
config NRFX_PPIB20
286+
bool "PPIB20 driver instance"
287+
depends on $(dt_nodelabel_has_compat,ppib20,$(DT_COMPAT_NORDIC_NRF_PPIB))
288+
select NRFX_PPIB
289+
290+
config NRFX_PPIB21
291+
bool "PPIB21 driver instance"
292+
depends on $(dt_nodelabel_has_compat,ppib21,$(DT_COMPAT_NORDIC_NRF_PPIB))
293+
select NRFX_PPIB
294+
295+
config NRFX_PPIB22
296+
bool "PPIB22 driver instance"
297+
depends on $(dt_nodelabel_has_compat,ppib22,$(DT_COMPAT_NORDIC_NRF_PPIB))
298+
select NRFX_PPIB
299+
300+
config NRFX_PPIB30
301+
bool "PPIB30 driver instance"
302+
depends on $(dt_nodelabel_has_compat,ppib30,$(DT_COMPAT_NORDIC_NRF_PPIB))
303+
select NRFX_PPIB
304+
262305
config NRFX_PWM
263306
bool
264307

modules/hal_nordic/nrfx/Kconfig.logging

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ config NRFX_PPI_LOG
6464
bool "PPI driver logging"
6565
depends on NRFX_PPI
6666

67+
config NRFX_PPIB_LOG
68+
bool "PPIB driver logging"
69+
depends on NRFX_PPIB
70+
6771
config NRFX_PRS_LOG
6872
bool "PRS driver logging"
6973
depends on NRFX_PRS

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,37 @@
278278
#define NRFX_PPI_CONFIG_LOG_ENABLED 1
279279
#endif
280280

281+
#ifdef CONFIG_NRFX_PPIB
282+
#define NRFX_PPIB_ENABLED 1
283+
#endif
284+
#ifdef CONFIG_NRFX_PPIB_LOG
285+
#define NRFX_PPIB_CONFIG_LOG_ENABLED 1
286+
#endif
287+
#ifdef CONFIG_NRFX_PPIB00
288+
#define NRFX_PPIB00_ENABLED 1
289+
#endif
290+
#ifdef CONFIG_NRFX_PPIB01
291+
#define NRFX_PPIB01_ENABLED 1
292+
#endif
293+
#ifdef CONFIG_NRFX_PPIB10
294+
#define NRFX_PPIB10_ENABLED 1
295+
#endif
296+
#ifdef CONFIG_NRFX_PPIB11
297+
#define NRFX_PPIB11_ENABLED 1
298+
#endif
299+
#ifdef CONFIG_NRFX_PPIB20
300+
#define NRFX_PPIB20_ENABLED 1
301+
#endif
302+
#ifdef CONFIG_NRFX_PPIB21
303+
#define NRFX_PPIB21_ENABLED 1
304+
#endif
305+
#ifdef CONFIG_NRFX_PPIB22
306+
#define NRFX_PPIB22_ENABLED 1
307+
#endif
308+
#ifdef CONFIG_NRFX_PPIB30
309+
#define NRFX_PPIB30_ENABLED 1
310+
#endif
311+
281312
#ifdef CONFIG_NRFX_PRS
282313
#define NRFX_PRS_ENABLED 1
283314
#endif

0 commit comments

Comments
 (0)