Disable l2cap connection oriented channels in Cordio default conf.

pull/10733/head
Vincent Coubard 2019-05-31 16:08:37 +01:00
parent 9cc1caa031
commit 0baf04dfb4
3 changed files with 9 additions and 9 deletions

View File

@ -24,12 +24,12 @@
},
"max-l2cap-channels": {
"help": "Maximum number of connection oriented channels",
"value": 8,
"value": 0,
"macro_name": "L2C_COC_CHAN_MAX"
},
"max-l2cap-clients": {
"help": "Maximum number of connection oriented channel registered clients",
"value": 4,
"value": 0,
"macro_name": "L2C_COC_REG_MAX"
},
"max-att-writes": {

View File

@ -67,11 +67,11 @@ using namespace ble::vendor::cordio;
#define MBED_CONF_CORDIO_LL_TX_BUFFERS MBED_CONF_CORDIO_LL_NRF52840_TX_BUFFERS
#define MBED_CONF_CORDIO_LL_PHY_CODED_SUPPORT MBED_CONF_CORDIO_LL_NRF52840_PHY_CODED_SUPPORT
#define CORDIO_LL_MEMORY_FOOTPRINT 41906UL
#define CORDIO_LL_MEMORY_FOOTPRINT 15400UL
#else
#define CORDIO_LL_MEMORY_FOOTPRINT 12768UL
#define CORDIO_LL_MEMORY_FOOTPRINT 12500UL
#endif
@ -235,9 +235,9 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
{
static union {
#if defined(NRF52840_XXAA)
uint8_t buffer[ 17304 ];
uint8_t buffer[ 4900 ];
#else
uint8_t buffer[ 8920 ];
uint8_t buffer[ 4900 ];
#endif
uint64_t align;
};
@ -246,8 +246,7 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
{ 32, 16 + 4 },
{ 64, 8 },
{ 128, 4 + MBED_CONF_CORDIO_LL_MAX_ADVERTISING_REPORTS },
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS },
{ 272, 1 }
{ aclBufSize, MBED_CONF_CORDIO_LL_TX_BUFFERS + MBED_CONF_CORDIO_LL_RX_BUFFERS }
};
return buf_pool_desc_t(buffer, pool_desc);

View File

@ -14,6 +14,7 @@
"INIT_PERIPHERAL",
"INIT_ENCRYPTED",
"LHCI_ENABLE_VS=0",
"BB_CLK_RATE_HZ=1000000"
"BB_CLK_RATE_HZ=1000000",
"LL_MAX_PER_SCAN=3"
]
}