-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
38 lines (33 loc) · 1.32 KB
/
Kconfig
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
menu "SM300D2 Air Quality Sensor"
config SM300D2_UART_PORT_NUM
int "UART port number"
range 0 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
default 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
range 0 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
default 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
help
UART communication port number for SM300D2 sensor.
See UART documentation for available port numbers.
config SM300D2_UART_RXD
int "UART RXD pin number"
range 0 34 if IDF_TARGET_ESP32
range 0 46 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
range 0 19 if IDF_TARGET_ESP32C3
range 0 47 if IDF_TARGET_ESP32S3
default 5
help
GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART.
config SM300D2_TASK_STACK_SIZE
int "Task stack size"
range 1024 16384
default 2048
help
Defines stack size for SM300D2 sensor. Insufficient stack size can cause crash.
config SM300D2_AGGREGATION_SECS
int "Aggregation period (seconds)"
range 1 3600
default 10
help
Emit one data point every such seconds. Arithmetic mean of points within the period.
endmenu