Skip to content

Commit af1932b

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 83d9269 commit af1932b

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
@@ -132,6 +132,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_NVMC ${SRC_DIR}/nrfx_nvmc.c)
132132
zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c)
133133
zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c)
134134
zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c)
135+
zephyr_library_sources_ifdef(CONFIG_NRFX_PPIB ${SRC_DIR}/nrfx_ppib.c)
135136
zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c)
136137
zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c)
137138
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
@@ -254,6 +254,49 @@ config NRFX_PPI
254254
bool "PPI allocator"
255255
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
256256

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

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)