-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsyscfg.yml
289 lines (250 loc) · 11.7 KB
/
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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
#
# 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.
# System Configuration Setting Definitions:
# Below are the settings defined by this app and their default values. To change the settings,
# edit the target config file at targets/nrf52_my_sensor/syscfg.yml.
# Strings must be enclosed by '"..."'
syscfg.defs:
# List of Settings
SENSOR_DEVICE:
description: 'Sensor device to be polled e.g. MYNEWT_VAL(TEMP_STM32_DEVICE)'
value: UNDEFINED_SENSOR_DEVICE
SENSOR_KEY:
description: 'Sensor value to be sent with this field name e.g. "t"'
value: UNDEFINED_SENSOR_KEY
SENSOR_TYPE:
description: 'Type of sensor e.g. SENSOR_TYPE_AMBIENT_TEMPERATURE_RAW'
value: UNDEFINED_SENSOR_TYPE
SENSOR_VALUE_TYPE:
description: 'Type of sensor value e.g. SENSOR_VALUE_TYPE_INT32'
value: UNDEFINED_SENSOR_VALUE_TYPE
SENSOR_POLL_TIME:
description: 'Poll the sensor every N milliseconds e.g. 10 * 1000'
value: UNDEFINED_SENSOR_POLL_TIME
BLUETOOTH_LE:
description: 'Enable Bluetooth LE functions'
value: 0
BLUETOOTH_BEACON:
description: 'Enable Bluetooth Beacon functions'
value: 0
BLUETOOTH_MESH:
description: 'Enable Bluetooth Mesh functions'
value: 0
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 }"
LOW_POWER:
description: 'Enable low power support for STM32 Blue Pill'
value: 0
GPS_L70R:
description: 'Enable driver for Quectel L70-R GPS module'
value: 0
BC95G:
description: 'Enable NB-IoT access with Quectel BC95-G'
value: 0
NRF24L01:
description: 'Enable wireless Collector and Sensor Nodes with nRF24L01 transceiver'
value: 0
REMOTE_SENSOR:
description: 'Enable driver for Remote Sensor that receives sensor data via nRF24L01 and CoAP'
value: 0
SENSOR_NETWORK:
description: 'Enable Sensor Network library'
value: 0
SENSOR_COAP:
description: 'Send sensor data to CoAP server'
value: 0
WIFI_GEOLOCATION:
description: 'Compute latitude / longitude based on WiFi access points scanned by ESP8266. Requires "esp8266" driver'
value: 0
ESP8266:
description: 'Enable WiFi access with ESP8266'
value: 0
HMAC_PRNG:
description: 'Generate pseuorandom numbers with HMAC. Based on TinyCrypt HMAC PRNG. Requires "temp_stm32" driver for internal temperature sensor as source of entropy.'
value: 0
TEMP_STM32:
description: 'Enable STM32 internal temperature sensor based on ADC'
value: 0
TEMP_STUB:
description: 'Enable stub temperature sensor'
value: 0
RAW_TEMP:
description: 'Use raw temperature (integer) instead of floating-point temperature values, to reduce ROM size'
value: 0
ADC_1:
description: 'Enable port ADC1 for STM32F1xx microcontrollers (blocking reads only, without DMA)'
value: 0
SEMIHOSTING_CONSOLE:
description: 'Use Arm Semihosting to display console messages. Works with STLink V2 and OpenOCD'
value: 1 # Default console is Arm Semihosting
# System Configuration Setting Values:
# Below we override the driver and library settings. Settings defined in
# targets/nrf52_my_sensor/syscfg.yml will override the settings below.
syscfg.vals:
###########################################################################
# Watchdog Settings
# The default PineTime bootloader will setup a 7 second watchdog
SANITY_INTERVAL: 5000 # Tickle the watchdog every 5 seconds, that the watchdog won't trigger a reboot
# WATCHDOG_INTERVAL: 7000 # If watchdog is not set, set it to 7 seconds
###########################################################################
# Stack and MSYS Buffer Settings
# OS_MAIN_STACK_SIZE: 1024 # Small stack size: 4 KB
OS_MAIN_STACK_SIZE: 2048 # Normal stack size: 8 KB
# OS_MAIN_STACK_SIZE: 4096 # Large stack size: 16 KB
MSYS_1_BLOCK_COUNT: 64 # Allocate extra MSYS buffers
###########################################################################
# CoAP Server Settings
# CoAP host e.g. 104.199.85.211 (for coap.thethings.io)
COAP_HOST: '"104.199.85.211"'
# CoAP UDP port, usually port 5683
COAP_PORT: 5683
# CoAP URI e.g. v2/things/IVRiBCcR6HPp_CcZIFfOZFxz_izni5xc_KO-kgSA2Y8 (for thethings.io, the last part is the Thing Token)
COAP_URI: '"v2/things/IVRiBCcR6HPp_CcZIFfOZFxz_izni5xc_KO-kgSA2Y8"'
###########################################################################
# Bluetooth LE Settings
BLUETOOTH_LE: 1 # Enable Bluetooth LE
# Disable observer role.
BLE_ROLE_BROADCASTER: 1 # Needed for broadcasting device
BLE_ROLE_CENTRAL: 1 # Needed for GATT Service Discovery
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 newtmgr commands.
STATS_NEWTMGR: 1
LOG_NEWTMGR: 1
CONFIG_NEWTMGR: 1
# OS main/default task
# OS_MAIN_STACK_SIZE: 468
# Lots of smaller mbufs are required for newtmgr using typical BLE ATT MTU
# values.
# MSYS_1_BLOCK_COUNT: 22
# MSYS_1_BLOCK_SIZE: 110
###########################################################################
# Bluetooth Beacon Settings
BLUETOOTH_BEACON: 0 # Disable Bluetooth Beacon
###########################################################################
# Bluetooth Mesh Settings
# MSYS_1_BLOCK_COUNT: 48 # Allocate extra MSYS buffers
# BLE_MESH_DEV_UUID: "((uint8_t[16]){0xdd, 0xdd, 0})"
# BLE_MESH_ADV_BUF_COUNT: 60
# BLE_MESH_TX_SEG_MAX: 6
# BLE_MESH_TX_SEG_MSG_COUNT: 3
# BLE_MESH_RX_SEG_MSG_COUNT: 3
# BLE_MESH_CRPL: 128
# BLE_MESH_RPL_STORE_TIMEOUT: 120
# BLE_MESH_MSG_CACHE_SIZE: 100
# BLE_MESH_SETTINGS: 1
# CONFIG_FCB: 1
# BLE_MESH: 1
# BLE_MESH_RELAY: 1
# BLE_MESH_LOW_POWER: 0
# BLE_MESH_LPN_AUTO: 0
# BLE_MESH_FRIEND: 0
# BLE_MESH_PROV: 1
# BLE_MESH_PB_ADV: 1
# BLE_MESH_PB_GATT: 1
# BLE_MESH_GATT_PROXY: 1
# BLE_MESH_SUBNET_COUNT: 2
# BLE_MESH_APP_KEY_COUNT: 2
# BLE_MESH_MODEL_GROUP_COUNT: 2
# BLE_MESH_LABEL_COUNT: 3
# BLE_MESH_DEBUG: 0
# BLE_MESH_DEBUG_NET: 0
# BLE_MESH_DEBUG_TRANS: 0
# BLE_MESH_DEBUG_BEACON: 0
# BLE_MESH_DEBUG_CRYPTO: 0
# BLE_MESH_DEBUG_PROV: 0
# BLE_MESH_DEBUG_ACCESS: 0
# BLE_MESH_DEBUG_MODEL: 0
# BLE_MESH_DEBUG_ADV: 0
# BLE_MESH_DEBUG_LOW_POWER: 0
# BLE_MESH_DEBUG_FRIEND: 0
# BLE_MESH_DEBUG_PROXY: 0
# Not used:
# LOG_LEVEL: 1
# OS_MAIN_STACK_SIZE: 4096
# SHELL_NEWTMGR: 0
# FLOAT_USER: 1
# HARD_FLOAT: 1
###########################################################################
# Network Settings
SENSOR_NETWORK: 0 # Disable Sensor Network library
SENSOR_COAP: 0 # Don't send sensor data to CoAP server
COAP_JSON_ENCODING: 0 # Don't use JSON to encode CoAP payload for forwarding to thethings.io
RAW_TEMP: 1 # Use raw temperature (integer) instead of floating-point temperature values, to reduce ROM size
###########################################################################
# Hardware Settings
SPI_0_MASTER: 1 # Enable SPI port 0 for ST7789 display and SPI Flash
I2C_1: 1 # Enable I2C port 1 for CST816S touch controller, BMA421 accelerometer, HRS3300 heart rate sensor
LOW_POWER: 0 # Disable low power support for STM32 Blue Pill
GPS_L70R: 0 # Disable driver for Quectel L70R GPS module
BC95G: 0 # Disable driver for Quectel BC95-G NB-IoT module
TEMP_STM32: 0 # Disable Blue Pill internal temperature sensor
ADC_1: 0 # Disable port ADC1 for internal temperature sensor
HMAC_PRNG: 0 # Disable HMAC PRNG pseudorandom number generator
###########################################################################
# OIC Settings for CoAP Transmission
OC_CLIENT: 0 # Disable the OIC (CoAP) client library
OC_SERVER: 0 # Disable the OIC (CoAP) server library
OC_TRANS_SECURITY: 0 # Disable TLS security
OC_TRANSPORT_IPV6: 0 # Disable IPv6, only use IPv4
OC_CLIENT_DISCOVERY_ENABLE: 0 # Disable client discovery
OC_NUM_REP_OBJECTS: 2 # Estimated number of nodes in payload tree structure
OC_CONCURRENT_REQUESTS: 2 # Max number of concurrent requests
OC_APP_RESOURCES: 2 # Max number of server resources
OC_CONN_EV_CB_CNT: 2 # How many callback events may be queued
OC_MAX_PAYLOAD: 400 # Maximum size of request/response PDUs
OC_MAX_PAYLOAD_SIZE: 400 # Platform payload size
###########################################################################
# Common Settings for minimal ROM size
CONSOLE_RTT: 0 # Disable RTT Console
CONSOLE_UART: 0 # Disable UART Console
LOG_CLI: 0 # Disable logging command-line interface
LOG_LEVEL: 255 # Disable logs
SENSOR_CLI: 0 # Disable sensor command-line interface
SENSOR_OIC: 0 # Disable sensor OIC functions
SHELL_CMD_HELP: 0 # Disable shell help
SHELL_OS_MODULE: 0 # Disable shell module
SHELL_TASK: 0 # Disable shell task
STATS_CLI: 0 # Disable statistics command-line interface
OS_SYSVIEW_TRACE_CALLOUT: 0 # Disable trace of callouts
OS_SYSVIEW_TRACE_EVENTQ: 0 # Disable trace of event queues
OS_SYSVIEW_TRACE_MUTEX: 0 # Disable trace of mutex
OS_SYSVIEW_TRACE_SEM: 0 # Disable trace of semaphores