Skip to content

Commit f0ad9b3

Browse files
pan-adbridge
authored andcommitted
Disable l2cap connection oriented channels in Cordio default conf.
1 parent 8fe4c20 commit f0ad9b3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/mbed_lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
},
2525
"max-l2cap-channels": {
2626
"help": "Maximum number of connection oriented channels",
27-
"value": 8,
27+
"value": 0,
2828
"macro_name": "L2C_COC_CHAN_MAX"
2929
},
3030
"max-l2cap-clients": {
3131
"help": "Maximum number of connection oriented channel registered clients",
32-
"value": 4,
32+
"value": 0,
3333
"macro_name": "L2C_COC_REG_MAX"
3434
},
3535
"max-att-writes": {

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ using namespace ble::vendor::cordio;
6767
#define MBED_CONF_CORDIO_LL_TX_BUFFERS MBED_CONF_CORDIO_LL_NRF52840_TX_BUFFERS
6868
#define MBED_CONF_CORDIO_LL_PHY_CODED_SUPPORT MBED_CONF_CORDIO_LL_NRF52840_PHY_CODED_SUPPORT
6969

70-
#define CORDIO_LL_MEMORY_FOOTPRINT 41906UL
70+
#define CORDIO_LL_MEMORY_FOOTPRINT 15400UL
7171

7272
#else
7373

74-
#define CORDIO_LL_MEMORY_FOOTPRINT 12768UL
74+
#define CORDIO_LL_MEMORY_FOOTPRINT 12500UL
7575

7676
#endif
7777

@@ -235,9 +235,9 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
235235
{
236236
static union {
237237
#if defined(NRF52840_XXAA)
238-
uint8_t buffer[ 17304 ];
238+
uint8_t buffer[ 4900 ];
239239
#else
240-
uint8_t buffer[ 8920 ];
240+
uint8_t buffer[ 4900 ];
241241
#endif
242242
uint64_t align;
243243
};
@@ -246,8 +246,7 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
246246
{ 32, 16 + 4 },
247247
{ 64, 8 },
248248
{ 128, 4 + MBED_CONF_CORDIO_LL_MAX_ADVERTISING_REPORTS },
249-
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS },
250-
{ 272, 1 }
249+
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS }
251250
};
252251

253252
return buf_pool_desc_t(buffer, pool_desc);

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/mbed_lib.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"INIT_PERIPHERAL",
1515
"INIT_ENCRYPTED",
1616
"LHCI_ENABLE_VS=0",
17-
"BB_CLK_RATE_HZ=1000000"
17+
"BB_CLK_RATE_HZ=1000000",
18+
"LL_MAX_PER_SCAN=3"
1819
]
1920
}

0 commit comments

Comments
 (0)