increase sd attribute table size from 0x800 to 0xC00, increase linker memory for SD 840 from 3400 to 6000

This commit is contained in:
hathach committed 2019-11-18 20:12:34 +07:00
1 parent 9860a6e757
commit 583ad02a7d
4 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -144,7 +144,7 @@ AdafruitBluefruit::AdafruitBluefruit(void)
/*------------------------------------------------------------------*/
varclr(&_sd_cfg);
_sd_cfg.attr_table_size = 0x800;
_sd_cfg.attr_table_size = CFG_SD_ATTR_TABLE_SIZE;
_sd_cfg.uuid128_max = BLE_UUID_VS_COUNT_DEFAULT;
_sd_cfg.service_changed = 1;
@@ -329,7 +329,7 @@ bool AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
* prph and central connections for optimal SRAM usage.
*
* - If Peripheral mode is enabled
* - ATTR Table Size = 0x800.
* - ATTR Table Size = CFG_SD_ATTR_TABLE_SIZE.
* - HVN TX Queue Size = 3
*
* - If Central mode is enabled
+2
View File
@@ -36,6 +36,8 @@
#define BLE_GATT_ATT_MTU_MAX 247
#define BLE_MAX_CONNECTION 20 // SD support up to 20 connections
#define CFG_SD_ATTR_TABLE_SIZE 0xC00
#include "BLEUuid.h"
#include "BLEAdvertising.h"
#include "BLECharacteristic.h"