xref: /nrf52832-nimble/packages/NimBLE-latest/apps/bleprph/syscfg.yml (revision 042d53a763ad75cb1465103098bb88c245d95138)
1*042d53a7SEvalZero# Licensed to the Apache Software Foundation (ASF) under one
2*042d53a7SEvalZero# or more contributor license agreements.  See the NOTICE file
3*042d53a7SEvalZero# distributed with this work for additional information
4*042d53a7SEvalZero# regarding copyright ownership.  The ASF licenses this file
5*042d53a7SEvalZero# to you under the Apache License, Version 2.0 (the
6*042d53a7SEvalZero# "License"); you may not use this file except in compliance
7*042d53a7SEvalZero# with the License.  You may obtain a copy of the License at
8*042d53a7SEvalZero#
9*042d53a7SEvalZero#  http://www.apache.org/licenses/LICENSE-2.0
10*042d53a7SEvalZero#
11*042d53a7SEvalZero# Unless required by applicable law or agreed to in writing,
12*042d53a7SEvalZero# software distributed under the License is distributed on an
13*042d53a7SEvalZero# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14*042d53a7SEvalZero# KIND, either express or implied.  See the License for the
15*042d53a7SEvalZero# specific language governing permissions and limitations
16*042d53a7SEvalZero# under the License.
17*042d53a7SEvalZero#
18*042d53a7SEvalZero
19*042d53a7SEvalZerosyscfg.defs:
20*042d53a7SEvalZero    BLEPRPH_LE_PHY_SUPPORT:
21*042d53a7SEvalZero        description: >
22*042d53a7SEvalZero            Enable support for changing PHY preference on active connection.
23*042d53a7SEvalZero            PHY preference change is triggered by configured GPIO pins.
24*042d53a7SEvalZero            Current PHY is indicated using LEDs connected to configured
25*042d53a7SEvalZero            GPIO pins.
26*042d53a7SEvalZero        value: 0
27*042d53a7SEvalZero    BLEPRPH_LE_PHY_BUTTON_GPIO:
28*042d53a7SEvalZero        description: >
29*042d53a7SEvalZero            GPIO pins for changing PHY preference on active connection. This
30*042d53a7SEvalZero            is an array of 4 GPIO pin numbers for 1M, 2M, LE Coded S=2 and
31*042d53a7SEvalZero            LE Coded S=8 respectively.
32*042d53a7SEvalZero        value: "(int[]){ BUTTON_1, BUTTON_2, BUTTON_3, BUTTON_4 }"
33*042d53a7SEvalZero    BLEPRPH_LE_PHY_LED_GPIO:
34*042d53a7SEvalZero        description: >
35*042d53a7SEvalZero            GPIO pins for indicating current PHY on active connection. This
36*042d53a7SEvalZero            is an array of 3 GPIO pin numbers for 1M, 2M and LE Coded
37*042d53a7SEvalZero            respectively.
38*042d53a7SEvalZero        value: "(int[]){ LED_1, LED_2, LED_3 }"
39*042d53a7SEvalZero
40*042d53a7SEvalZerosyscfg.vals:
41*042d53a7SEvalZero    # Disable central and observer roles.
42*042d53a7SEvalZero    BLE_ROLE_BROADCASTER: 1
43*042d53a7SEvalZero    BLE_ROLE_CENTRAL: 0
44*042d53a7SEvalZero    BLE_ROLE_OBSERVER: 0
45*042d53a7SEvalZero    BLE_ROLE_PERIPHERAL: 1
46*042d53a7SEvalZero
47*042d53a7SEvalZero    # Log reboot messages to a flash circular buffer.
48*042d53a7SEvalZero    REBOOT_LOG_FCB: 1
49*042d53a7SEvalZero    LOG_FCB: 1
50*042d53a7SEvalZero    CONFIG_FCB: 1
51*042d53a7SEvalZero
52*042d53a7SEvalZero    # Enable newtmgr commands.
53*042d53a7SEvalZero    STATS_NEWTMGR: 1
54*042d53a7SEvalZero    LOG_NEWTMGR: 1
55*042d53a7SEvalZero    CONFIG_NEWTMGR: 1
56*042d53a7SEvalZero
57*042d53a7SEvalZero    # OS main/default task
58*042d53a7SEvalZero    OS_MAIN_STACK_SIZE: 468
59*042d53a7SEvalZero
60*042d53a7SEvalZero    # Lots of smaller mbufs are required for newtmgr using typical BLE ATT MTU
61*042d53a7SEvalZero    # values.
62*042d53a7SEvalZero    MSYS_1_BLOCK_COUNT: 22
63*042d53a7SEvalZero    MSYS_1_BLOCK_SIZE: 110
64