add entry in config file for total links configuration

pull/8637/head
pingdan32 2018-09-26 13:25:13 +08:00 committed by Cruz Monrreal II
parent 69be786651
commit ad39129e50
2 changed files with 6 additions and 1 deletions

View File

@ -35,7 +35,7 @@ extern "C" {
/** If value for YOTTA_CFG_NORDIC_BLE_PERIPHERAL_LINKS was used, ram settings are adjusted by the yotta target module. */
#define PERIPHERAL_LINK_COUNT NRF_SDH_BLE_PERIPHERAL_LINK_COUNT /**<number of peripheral links used by the application. When changing this number remember to adjust the RAM settings*/
/** If value for YOTTA_CFG_NORDIC_BLE_CENTRAL_LINKS was used, ram settings are adjusted by the yotta target module. */
#define TOTAL_LINK_COUNT (CENTRAL_LINK_COUNT+PERIPHERAL_LINK_COUNT) /**<number of total links used by the application. When changing this number remember to adjust the RAM settings */
#define TOTAL_LINK_COUNT NRF_SDH_BLE_TOTAL_LINK_COUNT /**<number of total links used by the application. When changing this number remember to adjust the RAM settings */
#define GATTS_ATTR_TAB_SIZE NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE /**< GATTS attribite table size. */
/** If value for YOTTA_CFG_NORDIC_BLE_GATTS_ATTR_TAB_SIZE was used, ram settings are adjusted by the yotta target module. */

View File

@ -11,6 +11,11 @@
"value": "1",
"macro_name": "NRF_SDH_BLE_PERIPHERAL_LINK_COUNT"
},
"total_link_count": {
"help": "How many concurrent connections the system support.",
"value": "(NRF_SDH_BLE_CENTRAL_LINK_COUNT + NRF_SDH_BLE_PERIPHERAL_LINK_COUNT)",
"macro_name": "NRF_SDH_BLE_TOTAL_LINK_COUNT"
},
"gatt_attr_tab_size": {
"help": "The size of the table used to hold gatts. Can be adjusted by trial and error",
"value": "0x600",