Skip to content

Commit

Permalink
Bluetooth: Controller: Add memory macro for subrating
Browse files Browse the repository at this point in the history
This includes memory used for subrating in the MEMPOOL_SIZE
macro.

Signed-off-by: Adam Cavender <[email protected]>
  • Loading branch information
adamfc2000 committed Jul 10, 2024
1 parent 7a23a0a commit 48390dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions subsys/bluetooth/controller/hci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
#define SDC_LE_POWER_CONTROL_MEM_SIZE 0
#endif

#if defined(CONFIG_BT_CTLR_SUBRATING)
#define SDC_SUBRATING_MEM_SIZE SDC_MEM_SUBRATING(SDC_CENTRAL_COUNT + PERIPHERAL_COUNT)
#else
#define SDC_SUBRATING_MEM_SIZE 0
#endif

#if defined(CONFIG_BT_CTLR_CONN_ISO)
#define SDC_MEM_CIG SDC_MEM_PER_CIG(CONFIG_BT_CTLR_CONN_ISO_GROUPS)
#define SDC_MEM_CIS \
Expand Down Expand Up @@ -242,6 +248,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
(SDC_CENTRAL_COUNT * CENTRAL_MEM_SIZE) + \
(SDC_ADV_SET_MEM_SIZE) + \
(SDC_LE_POWER_CONTROL_MEM_SIZE) + \
(SDC_SUBRATING_MEM_SIZE) + \
(SDC_PERIODIC_ADV_MEM_SIZE) + \
(SDC_PERIODIC_ADV_RSP_MEM_SIZE) + \
(SDC_PERIODIC_SYNC_MEM_SIZE) + \
Expand Down

0 comments on commit 48390dd

Please sign in to comment.