-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig
More file actions
180 lines (142 loc) · 3.97 KB
/
Kconfig
File metadata and controls
180 lines (142 loc) · 3.97 KB
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
menu "Demo Zephyr Application"
config APP_SENSOR_POLL_INTERVAL_MS
int "Sensor polling interval in milliseconds"
default 5000
help
Interval between sensor readings.
config APP_CMD_BUF_SIZE
int "Command buffer size"
default 256
help
Maximum size of an AT command string.
config APP_BLE_DEVICE_NAME
string "BLE advertised device name"
default "DemoZephyr"
help
The name advertised via BLE.
menu "Data Logger"
config APP_LOG_MAX_ENTRIES
int "Maximum log entries in ring buffer"
default 256
range 16 2048
help
Number of sensor readings stored in the RAM ring buffer.
Each entry consumes 32 bytes.
config APP_LOG_CSV_LINE_BUF
int "CSV line formatting buffer size"
default 128
help
Buffer size for formatting a single CSV line.
endmenu
menu "Send Manager"
config APP_SEND_DEFAULT_REPEAT_INTERVAL
int "Default repeat interval in seconds"
default 60
range 1 86400
config APP_SEND_DEFAULT_REPEAT_COUNT
int "Default repeat count (0 = infinite)"
default 5
range 0 65535
config APP_SEND_DEFAULT_SEQ_MSG_COUNT
int "Default messages per sequence"
default 3
range 1 100
config APP_SEND_DEFAULT_SEQ_MSG_INTERVAL
int "Default message interval within sequence (seconds)"
default 10
range 1 3600
config APP_SEND_DEFAULT_SEQ_INTERVAL
int "Default interval between sequences (seconds)"
default 60
range 1 86400
config APP_SEND_DEFAULT_JITTER_PCT
int "Default jitter percentage for TX intervals (0-50%)"
default 0
range 0 50
help
Percentage of randomized jitter applied to TX intervals.
Helps avoid collisions between multiple prototypes.
endmenu
menu "Sensor Acquisition"
config APP_ACQ_BUFFER_SIZE
int "Per-sensor raw reading buffer size"
default 32
range 4 256
help
Number of raw readings accumulated per sensor before
the oldest is dropped. Each reading is ~56 bytes.
config APP_ACQ_DEFAULT_INTERVAL_MS
int "Default per-sensor acquisition interval (ms, 0=disabled)"
default 0
range 0 3600000
help
Set to 0 to disable per-sensor acquisition by default.
endmenu
menu "Power Management"
config APP_LPM_ALLOW_DEFAULT
bool "Allow SMD LPM mode change by default"
default y
help
If enabled, AT+LPM commands are forwarded to the SMD module.
If disabled, AT+LPM is blocked until explicitly allowed via
AT+LPM_GATE=1.
config APP_PM_ENABLE
bool "Enable nRF52840 power management (idle sleep)"
default y
help
Enables Zephyr power management subsystem for reduced power
consumption when idle.
endmenu
menu "Debug Logging"
config APP_LOG_BACKEND_USB
bool "Enable logging output on USB CDC (in addition to RTT)"
default n
select LOG_BACKEND_UART
help
When enabled, log messages are also sent to the USB CDC serial port.
By default, logs only go to RTT (Segger J-Link).
Enable this for debugging when RTT is not available.
Note: This may interfere with AT command responses on USB.
endmenu
menu "Streaming"
config APP_STREAM_DEFAULT_RATE_MS
int "Default streaming rate in milliseconds"
default 100
range 10 60000
help
Interval between streaming data output lines.
config APP_STREAM_MIN_RATE_MS
int "Minimum allowed streaming rate (ms)"
default 10
range 10 1000
help
Fastest allowed streaming rate to prevent overload.
endmenu
menu "LED Status (NeoPixel)"
config APP_LED_ENABLE
bool "Enable LED status indicator"
default y
help
Enable RGB LED status indication.
Requires hardware with LED strip support (e.g., Adafruit Feather nRF52840).
config APP_LED_ENABLE_DEFAULT
bool "Enable LED on boot by default"
depends on APP_LED_ENABLE
default y
help
If enabled, LED will be active on system startup.
Can be disabled at runtime with AT+LED_ENABLE=0.
config APP_LED_DEFAULT_BRIGHTNESS
int "Default LED brightness (0-100%)"
depends on APP_LED_ENABLE
default 50
range 0 100
help
Default brightness level for the status LED.
Lower values save power, higher values are more visible.
endmenu
module = DEMO_ZEPHYR
module-str = Demo Zephyr
source "subsys/logging/Kconfig.template.log_config"
endmenu
source "Kconfig.zephyr"