Skip to content

Commit e5d2780

Browse files
committed
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 1a6b18b commit e5d2780

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_NVMC ${SRC_DIR}/nrfx_nvmc.c)
122122
zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c)
123123
zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c)
124124
zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c)
125+
zephyr_library_sources_ifdef(CONFIG_NRFX_PPIB ${SRC_DIR}/nrfx_ppib.c)
125126
zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c)
126127
zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c)
127128
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
@@ -250,6 +250,49 @@ config NRFX_PPI
250250
bool "PPI allocator"
251251
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
252252

253+
config NRFX_PPIB
254+
bool
255+
256+
config NRFX_PPIB00
257+
bool "PPIB00 driver instance"
258+
depends on $(dt_nodelabel_has_compat,ppib00,$(DT_COMPAT_NORDIC_NRF_PPIB))
259+
select NRFX_PPIB
260+
261+
config NRFX_PPIB01
262+
bool "PPIB01 driver instance"
263+
depends on $(dt_nodelabel_has_compat,ppib01,$(DT_COMPAT_NORDIC_NRF_PPIB))
264+
select NRFX_PPIB
265+
266+
config NRFX_PPIB10
267+
bool "PPIB10 driver instance"
268+
depends on $(dt_nodelabel_has_compat,ppib10,$(DT_COMPAT_NORDIC_NRF_PPIB))
269+
select NRFX_PPIB
270+
271+
config NRFX_PPIB11
272+
bool "PPIB11 driver instance"
273+
depends on $(dt_nodelabel_has_compat,ppib11,$(DT_COMPAT_NORDIC_NRF_PPIB))
274+
select NRFX_PPIB
275+
276+
config NRFX_PPIB20
277+
bool "PPIB20 driver instance"
278+
depends on $(dt_nodelabel_has_compat,ppib20,$(DT_COMPAT_NORDIC_NRF_PPIB))
279+
select NRFX_PPIB
280+
281+
config NRFX_PPIB21
282+
bool "PPIB21 driver instance"
283+
depends on $(dt_nodelabel_has_compat,ppib21,$(DT_COMPAT_NORDIC_NRF_PPIB))
284+
select NRFX_PPIB
285+
286+
config NRFX_PPIB22
287+
bool "PPIB22 driver instance"
288+
depends on $(dt_nodelabel_has_compat,ppib22,$(DT_COMPAT_NORDIC_NRF_PPIB))
289+
select NRFX_PPIB
290+
291+
config NRFX_PPIB30
292+
bool "PPIB30 driver instance"
293+
depends on $(dt_nodelabel_has_compat,ppib30,$(DT_COMPAT_NORDIC_NRF_PPIB))
294+
select NRFX_PPIB
295+
253296
config NRFX_PWM
254297
bool
255298

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,37 @@
272272
#define NRFX_PPI_CONFIG_LOG_ENABLED 1
273273
#endif
274274

275+
#ifdef CONFIG_NRFX_PPIB
276+
#define NRFX_PPIB_ENABLED 1
277+
#endif
278+
#ifdef CONFIG_NRFX_PPIB_LOG
279+
#define NRFX_PPIB_CONFIG_LOG_ENABLED 1
280+
#endif
281+
#ifdef CONFIG_NRFX_PPIB00
282+
#define NRFX_PPIB00_ENABLED 1
283+
#endif
284+
#ifdef CONFIG_NRFX_PPIB01
285+
#define NRFX_PPIB01_ENABLED 1
286+
#endif
287+
#ifdef CONFIG_NRFX_PPIB10
288+
#define NRFX_PPIB10_ENABLED 1
289+
#endif
290+
#ifdef CONFIG_NRFX_PPIB11
291+
#define NRFX_PPIB11_ENABLED 1
292+
#endif
293+
#ifdef CONFIG_NRFX_PPIB20
294+
#define NRFX_PPIB20_ENABLED 1
295+
#endif
296+
#ifdef CONFIG_NRFX_PPIB21
297+
#define NRFX_PPIB21_ENABLED 1
298+
#endif
299+
#ifdef CONFIG_NRFX_PPIB22
300+
#define NRFX_PPIB22_ENABLED 1
301+
#endif
302+
#ifdef CONFIG_NRFX_PPIB30
303+
#define NRFX_PPIB30_ENABLED 1
304+
#endif
305+
275306
#ifdef CONFIG_NRFX_PRS
276307
#define NRFX_PRS_ENABLED 1
277308
#endif

0 commit comments

Comments
 (0)