Skip to content

Commit f781fd5

Browse files
sean-madiganrlubos
authored andcommitted
susbsys: bluetooth: controller: Use new sync transfer mem define
This has been added to the controller and must be used when calculating the required memory for SDC. Signed-off-by: Sean Madigan <[email protected]>
1 parent fef20ce commit f781fd5

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
@@ -183,6 +183,12 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
183183
#define SDC_SUBRATING_MEM_SIZE 0
184184
#endif
185185

186+
#if defined(CONFIG_BT_CTLR_SYNC_TRANSFER_RECEIVER) || defined(CONFIG_BT_CTLR_SYNC_TRANSFER_SENDER)
187+
#define SDC_SYNC_TRANSFER_MEM_SIZE SDC_MEM_SYNC_TRANSFER(SDC_CENTRAL_COUNT + PERIPHERAL_COUNT)
188+
#else
189+
#define SDC_SYNC_TRANSFER_MEM_SIZE 0
190+
#endif
191+
186192
#if defined(CONFIG_BT_CTLR_CONN_ISO)
187193
#define SDC_MEM_CIG SDC_MEM_PER_CIG(CONFIG_BT_CTLR_CONN_ISO_GROUPS)
188194
#define SDC_MEM_CIS \
@@ -251,6 +257,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) ||
251257
(SDC_ADV_SET_MEM_SIZE) + \
252258
(SDC_LE_POWER_CONTROL_MEM_SIZE) + \
253259
(SDC_SUBRATING_MEM_SIZE) + \
260+
(SDC_SYNC_TRANSFER_MEM_SIZE) + \
254261
(SDC_PERIODIC_ADV_MEM_SIZE) + \
255262
(SDC_PERIODIC_ADV_RSP_MEM_SIZE) + \
256263
(SDC_PERIODIC_SYNC_MEM_SIZE) + \

0 commit comments

Comments
 (0)