xref: /nrf52832-nimble/packages/NimBLE-latest/nimble/transport/uart/syscfg.yml (revision 042d53a763ad75cb1465103098bb88c245d95138)
1# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements.  See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership.  The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License.  You may obtain a copy of the License at
8#
9#  http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing,
12# software distributed under the License is distributed on an
13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14# KIND, either express or implied.  See the License for the
15# specific language governing permissions and limitations
16# under the License.
17#
18
19syscfg.defs:
20    BLE_HCI_EVT_BUF_SIZE:
21        description: 'The size of the allocated event buffers'
22        value: 70
23    BLE_HCI_EVT_HI_BUF_COUNT:
24        description: 'The number of high priority event buffers'
25        value: 8
26    BLE_HCI_EVT_LO_BUF_COUNT:
27        description: 'The number of low priority event buffers'
28        value: 8
29    BLE_ACL_BUF_COUNT:
30        description: 'The number of ACL data buffers'
31        value: 12
32    BLE_ACL_BUF_SIZE:
33        description: >
34            This is the maximum size of the data portion of HCI ACL data
35            packets. It does not include the HCI data header (of 4 bytes).
36        value: 255
37
38    BLE_HCI_ACL_OUT_COUNT:
39        description: >
40            This count is used in creating a pool of elements used by the
41            code to enqueue various elements. In the case of the controller
42            only HCI, this number should be equal to the number of mbufs in
43            the msys pool. For host only, it is really dependent on the
44            number of ACL buffers that the controller tells the host it
45            has.
46        value: 12
47
48    BLE_HCI_UART_PORT:
49        description: 'The uart to use for the HCI uart interface'
50        value:            0
51    BLE_HCI_UART_BAUD:
52        description: 'The baud rate of the HCI uart interface'
53        value:            1000000
54    BLE_HCI_UART_DATA_BITS:
55        description: 'Number of data bits used for HCI uart interface'
56        value:       8
57    BLE_HCI_UART_STOP_BITS:
58        description: 'Number of stop bits used for HCI uart interface'
59        value:       1
60    BLE_HCI_UART_PARITY:
61        description: 'Parity used for HCI uart interface'
62        value:          HAL_UART_PARITY_NONE
63    BLE_HCI_UART_FLOW_CTRL:
64        description: 'Flow control used for HCI uart interface'
65        value:       HAL_UART_FLOW_CTL_RTS_CTS
66    BLE_TRANS_UART_SYSINIT_STAGE:
67        description: >
68            Sysinit stage for the UART BLE transport.
69        value: 500
70
71syscfg.vals.BLE_EXT_ADV:
72    BLE_HCI_EVT_BUF_SIZE: 257
73