WXK
2025-02-05 961c1174bbf1aaae5fa2f672806ed4eaf2f917be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
 
syscfg.defs:
    BLE_TRANSPORT: 1
 
    BLE_TRANSPORT_HS:
        description: >
            Select HCI transport used towards host.
            "native" means NimBLE host is running on the same core and no
            transport is required.
        value: native
        choices:
            - native
            - dialog_cmac
            - nrf5340
            - uart
            - usb
            - custom
    BLE_TRANSPORT_LL:
        description: >
            Select HCI transport used towards controller.
            "native" means NimBLE controller is running on the same core and no
            transport is required.
        value: native
        choices:
            - native
            - emspi
            - dialog_cmac
            - nrf5340
            - socket
            - apollo3
            - custom
 
    BLE_TRANSPORT_ACL_COUNT:
        description: >
            Number of ACL buffers available in transport. This determines
            number of buffers used by host/controller for flow control.
            Buffers pool is allocated for each non-native transport side
            selected, unless overriden by BLE_TRANSPORT_ACL_FROM_[HS|LL]_COUNT.
        value: 10
    BLE_TRANSPORT_ACL_SIZE:
        description: Size of each buffer in ACL pool.
        value: 255
    BLE_TRANSPORT_EVT_COUNT:
        description: >
            Number of event buffers available in transport.
        value: 4
    BLE_TRANSPORT_EVT_DISCARDABLE_COUNT:
        description: >
            Number of discardable event buffers available in transport.
            Discardable event buffers are used for events that can be safely
            dropped by controller if there's no free buffer available, e.g.
            advertising reports.
        value: 16
    BLE_TRANSPORT_EVT_SIZE:
        description: >
            Size of each buffer in events pool. This applies to both regular
            and discardable buffers. Value is automatically adjusted if
            extended advertising is enabled so in most cases it's better to
            leave it at default settings.
        value: 70
 
    BLE_TRANSPORT_ACL_FROM_HS_COUNT:
        description: >
            Overrides BLE_TRANSPORT_ACL_COUNT on host side, i.e. number
            of ACL buffers available for host.
        value: MYNEWT_VAL(BLE_TRANSPORT_ACL_COUNT)
    BLE_TRANSPORT_ACL_FROM_LL_COUNT:
        description: >
            Overrides BLE_TRANSPORT_ACL_COUNT on controller side, i.e. number
            of ACL buffers available for controller.
        value: MYNEWT_VAL(BLE_TRANSPORT_ACL_COUNT)
 
# import monitor and defunct settings from separate file to reduce clutter in main file
$import:
    - "@apache-mynewt-nimble/nimble/transport/syscfg.monitor.yml"
    - "@apache-mynewt-nimble/nimble/transport/syscfg.defunct.yml"
 
syscfg.vals."BLE_EXT_ADV || BLE_LL_CFG_FEAT_LL_EXT_ADV":
    BLE_TRANSPORT_EVT_SIZE: 257