Newer
Older
mbed-os / connectivity / FEATURE_BLE / source / cordio / mbed_lib.json
@Abbas Bracken Ziad Abbas Bracken Ziad on 15 Mar 2021 4 KB Add tracing to BLE GAP (#14117)
{
    "name": "cordio",
    "macros": ["WSF_MS_PER_TICK=1"],
    "config": {
        "max-connections": {
            "help": "Maximum number of connections",
            "value": 3,
            "macro_name": "DM_CONN_MAX"
        },
        "max-syncs": {
            "help": "Maximum number of periodic advertising synchronizations",
            "value": 1,
            "macro_name": "DM_SYNC_MAX"
        },
        "max-advertising-sets": {
            "help": "Number of supported advertising sets: must be set to 1 for legacy advertising",
            "value": 3,
            "macro_name": "DM_NUM_ADV_SETS"
        },
        "max-phys": {
            "help": "Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for legacy scanner and initiator",
            "value": 3,
            "macro_name": "DM_NUM_PHYS"
        },
        "max-l2cap-channels": {
            "help": "Maximum number of connection oriented channels",
            "value": 1,
            "macro_name": "L2C_COC_CHAN_MAX"
        },
        "max-l2cap-clients": {
            "help": "Maximum number of connection oriented channel registered clients",
            "value": 1,
            "macro_name": "L2C_COC_REG_MAX"
        },
        "max-att-writes": {
            "help": "Maximum number of simultaneous ATT write commands",
            "value": 1,
            "macro_name": "ATT_NUM_SIMUL_WRITE_CMD"
        },
        "max-att-notifications": {
            "help": "Maximum number of simultaneous ATT notifications",
            "value": 1,
            "macro_name": "ATT_NUM_SIMUL_NTF"
        },
        "max-smp-devices": {
            "help": "Max number of devices in the security database",
            "value": 3,
            "macro_name": "SMP_DB_MAX_DEVICES"
        },
        "desired-att-mtu": {
            "help": "Desired ATT_MTU, this needs to be between 23 and 517 (inclusive). The effective ATT_MTU is limited by rx-acl-buffer-size (minus 4 bytes for the header).",
            "value": 23
        },
        "rx-acl-buffer-size": {
            "help": "Size of the buffer holding the reassembled complete ACL packet. This will limit the effective ATT_MTU (to its value minus 4 bytes for the header). The size of the buffer must be small enough to be allocated from the existing cordio pool. If this value is increased you may need to adjust the memory pool.",
            "value": 70
        },
        "max-prepared-writes": {
            "help": "Number of queued prepare writes supported by server.",
            "value": 4
        },
        "cmac-calculation": {
            "help": "Where the CBC MAC calculatio is performed. Valid values are 0 (host) and 1 (controller through HCI).",
            "value": 1,
            "macro_name": "SEC_CCM_CFG"
        },
        "route_unhandled_command_complete_events": {
            "help": "If enabled the stack will forward to the user all HCI events not handled by the stack.",
            "value": 1
        },
        "preferred-tx-power": {
            "help": "Preferred value of tx power in dbm (-128,127). This value is not guaranteed and relies on existing support in the HCI driver.",
            "value": 0
        },
        "max-eatt-channels": {
            "help": "Maximum number of EATT channels per DM connection.",
            "value": 1,
            "macro_name": "EATT_CONN_CHAN_MAX"
        },
        "rpa-swap-workaround": {
            "help": "Check connection complete event if it needs the addresses swapped due to bug in controller",
            "value": null,
            "macro_name": "CORDIO_RPA_SWAP_WORKAROUND"
        },
        "trace-pal-echoes": {
            "help": "Include 'echo' traces in PAL, i.e. function signature and argument prints",
            "value": 0
        },
        "trace-hci-packets": {
            "help": "If tracing is enabled at level DEBUG traces will include HCI packet traces.",
            "value": false
        },
        "trace-cordio-wsf-traces": {
            "help": "If tracing is enabled at level DEBUG traces will include WSF traces from Cordio packet traces.",
            "value": false,
            "macro_name": "WSF_TRACE_ENABLED"
        }
    },
    "target_overrides": {
        "NUCLEO_WB55RG": {
            "rpa-swap-workaround": true
        }
    }
}