InfiniTime.git

ref: 0.12.0

src/libs/mynewt-nimble/apps/bleprph/syscfg.yml


 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
# 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:
    BLEPRPH_LE_PHY_SUPPORT:
        description: >
            Enable support for changing PHY preference on active connection.
            PHY preference change is triggered by configured GPIO pins.
            Current PHY is indicated using LEDs connected to configured
            GPIO pins.            
        value: 0
    BLEPRPH_LE_PHY_BUTTON_GPIO:
        description: >
            GPIO pins for changing PHY preference on active connection. This
            is an array of 4 GPIO pin numbers for 1M, 2M, LE Coded S=2 and
            LE Coded S=8 respectively.            
        value: "(int[]){ BUTTON_1, BUTTON_2, BUTTON_3, BUTTON_4 }"
    BLEPRPH_LE_PHY_LED_GPIO:
        description: >
            GPIO pins for indicating current PHY on active connection. This
            is an array of 3 GPIO pin numbers for 1M, 2M and LE Coded
            respectively.            
        value: "(int[]){ LED_1, LED_2, LED_3 }"

syscfg.vals:
    # Disable central and observer roles.
    BLE_ROLE_BROADCASTER: 1
    BLE_ROLE_CENTRAL: 0
    BLE_ROLE_OBSERVER: 0
    BLE_ROLE_PERIPHERAL: 1

    # Configure DIS
    BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM: 1

    # Log reboot messages to a flash circular buffer.
    REBOOT_LOG_FCB: 1
    LOG_FCB: 1
    CONFIG_FCB: 1

    # Enable smp commands.
    STATS_MGMT: 1
    LOG_MGMT: 1
    CONFIG_MGMT: 1

    # OS main/default task
    OS_MAIN_STACK_SIZE: 512

    # Lots of smaller mbufs are required for smp using typical BLE ATT MTU
    # values.
    MSYS_1_BLOCK_COUNT: 22
    MSYS_1_BLOCK_SIZE: 110

    BLE_SVC_GAP_DEVICE_NAME: '"nimble-bleprph"'