Skip to content

Commit d983ec0

Browse files
committed
[nrf fromlist] 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]> (cherry picked from commit 609866bfc88e7cb64db8ac9f6ac8b5c1f31fcc57) Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent e394d90 commit d983ec0

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
@@ -253,6 +253,49 @@ config NRFX_PPI
253253
bool "PPI allocator"
254254
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
255255

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

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)