Skip to content

Commit 046cca6

Browse files
adamfc2000rlubos
authored andcommitted
Bluetooth: Controller: Add memory macro for subrating
This includes memory used for subrating in the MEMPOOL_SIZE macro. Signed-off-by: Adam Cavender <[email protected]>
1 parent 1f0de18 commit 046cca6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

subsys/bluetooth/controller/hci_driver.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
175175
#define SDC_LE_POWER_CONTROL_MEM_SIZE 0
176176
#endif
177177

178+
#if defined(CONFIG_BT_CTLR_SUBRATING)
179+
#define SDC_SUBRATING_MEM_SIZE SDC_MEM_SUBRATING(SDC_CENTRAL_COUNT + PERIPHERAL_COUNT)
180+
#else
181+
#define SDC_SUBRATING_MEM_SIZE 0
182+
#endif
183+
178184
#if defined(CONFIG_BT_CTLR_CONN_ISO)
179185
#define SDC_MEM_CIG SDC_MEM_PER_CIG(CONFIG_BT_CTLR_CONN_ISO_GROUPS)
180186
#define SDC_MEM_CIS \
@@ -242,6 +248,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
242248
(SDC_CENTRAL_COUNT * CENTRAL_MEM_SIZE) + \
243249
(SDC_ADV_SET_MEM_SIZE) + \
244250
(SDC_LE_POWER_CONTROL_MEM_SIZE) + \
251+
(SDC_SUBRATING_MEM_SIZE) + \
245252
(SDC_PERIODIC_ADV_MEM_SIZE) + \
246253
(SDC_PERIODIC_ADV_RSP_MEM_SIZE) + \
247254
(SDC_PERIODIC_SYNC_MEM_SIZE) + \

0 commit comments

Comments
 (0)