Skip to content

Commit

Permalink
Bluetooth: radio_notification_conn_cb for 54 series
Browse files Browse the repository at this point in the history
Allows building the radio notification conn callback lib
for 54 series. This was previously not possible due lacking
device tree nodes for EGUs.

Signed-off-by: Rubin Gerritsen <[email protected]>
  • Loading branch information
rugeGerritsen authored and nordicjm committed Sep 6, 2024
1 parent acf0771 commit ec0b996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion subsys/bluetooth/host_extensions/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ menuconfig BT_RADIO_NOTIFICATION_CONN_CB
select BT_CTLR_SDC_EVENT_TRIGGER
select NRFX_PPI if HAS_HW_NRF_PPI
select NRFX_DPPI if HAS_HW_NRF_DPPIC
select NRFX_EGU0
select EXPERIMENTAL
help
Enables the support for setting up a radio notification
Expand Down Expand Up @@ -58,6 +57,11 @@ config BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU5
depends on $(dt_nodelabel_has_compat,egu5,$(DT_COMPAT_NORDIC_NRF_EGU))
select NRFX_EGU5

config BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU10
bool "Use EGU10"
depends on $(dt_nodelabel_has_compat,egu10,$(DT_COMPAT_NORDIC_NRF_EGU))
select NRFX_EGU10

config BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU020
bool "Use EGU020"
depends on $(dt_nodelabel_has_compat,egu020,$(DT_COMPAT_NORDIC_NRF_EGU))
Expand Down
2 changes: 2 additions & 0 deletions subsys/bluetooth/host_extensions/radio_notification_conn_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#define EGU_INST_IDX 4
#elif defined(CONFIG_BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU5)
#define EGU_INST_IDX 5
#elif defined(CONFIG_BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU10)
#define EGU_INST_IDX 10
#elif defined(CONFIG_BT_RADIO_NOTIFICATION_CONN_CB_EGU_INST_EGU020)
#define EGU_INST_IDX 020
#else
Expand Down

0 comments on commit ec0b996

Please sign in to comment.