forked from utkumaden/esp-idf-bmx280
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
137 lines (129 loc) · 4.97 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
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
menu "BMX280 Options"
choice BMX280_EXPECT_DEVICE
prompt "Installed Sensor Model"
help
Set to the model of the sensor you are using (if you know it).
default BMX280_EXPECT_DETECT
config BMX280_EXPECT_DETECT
bool "Auto"
config BMX280_EXPECT_BME280
bool "BME280"
config BMX280_EXPECT_BMP280
bool "BMP280"
endchoice
choice BMX280_ADDRESS
prompt "I2C Slave Address"
help
Set the slave address of the sensor if you know it. The driver can
automatically detect it if you don't know.
default BMX280_ADDRESS_DETECT
config BMX280_ADDRESS_DETECT
bool "Auto"
config BMX280_ADDERSS_LO
bool "0x76 (SDO LOW)"
config BMX280_ADDERSS_HI
bool "0x77 (SDO HIGH)"
endchoice
config BMX280_TIMEOUT
int "Read/Write Timeout"
default 5
help
Number of ticks to wait for I2C read/write operations.
menu "Default Configuration"
choice BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING
prompt "Temperature Oversampling"
default BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X2
help
Refer to BMP280/BME280 Datasheet for more information.
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_NONE
bool "None"
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X1
bool "x1"
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X2
bool "x2"
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X4
bool "x4"
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X8
bool "x8"
config BMX280_DEFAULT_TEMPERATURE_OVERSAMPLING_X16
bool "x16"
endchoice
choice BMX280_DEFAULT_PRESSURE_OVERSAMPLING
prompt "Pressure Oversampling"
default BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X16
help
Refer to BMP280/BME280 Datasheet for more information.
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_NONE
bool "None"
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X1
bool "x1"
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X2
bool "x2"
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X4
bool "x4"
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X8
bool "x8"
config BMX280_DEFAULT_PRESSURE_OVERSAMPLING_X16
bool "x16"
endchoice
choice BMX280_DEFAULT_STANDBY
prompt "Cyclic Measurement Standby Time"
default BMX280_DEFAULT_STANDBY_0M5
help
Refer to BMP280/BME280 Datasheet for more information.
config BMX280_DEFAULT_STANDBY_0M5
bool "0.5ms"
config BMX280_DEFAULT_STANDBY_62M5
bool "62.5ms"
config BMX280_DEFAULT_STANDBY_125M
bool "125ms"
config BMX280_DEFAULT_STANDBY_250M
bool "250ms"
config BMX280_DEFAULT_STANDBY_500M
bool "500ms"
config BMX280_DEFAULT_STANDBY_1000M
bool "1000ms"
config BMX280_DEFAULT_STANDBY_10M
bool "BMP280: 2000ms // BME280: 10ms"
config BMX280_DEFAULT_STANDBY_20M
bool "BMP280: 4000ms // BME280: 20ms"
endchoice
choice BMX280_DEFAULT_IIR
prompt "IIR Filter Sensitivity"
default BMX280_DEFAULT_IIR_X16
help
Refer to BMP280/BME280 Datasheet for more information.
config BMX280_DEFAULT_IIR_NONE
bool "Filter Off"
config BMX280_DEFAULT_IIR_X2
bool "x2"
config BMX280_DEFAULT_IIR_X4
bool "x4"
config BMX280_DEFAULT_IIR_X8
bool "x8"
config BMX280_DEFAULT_IIR_X16
bool "x16"
endchoice
menu "BME280 Specific Options"
depends on !(BMX280_EXPECT_BMP280)
choice BMX280_DEFAULT_HUMIDITY_OVERSAMPLING
prompt "Humidity Oversampling"
default BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X1
help
Refer to BME280 Datasheet for more information.
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_NONE
bool "None"
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X1
bool "x1"
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X2
bool "x2"
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X4
bool "x4"
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X8
bool "x8"
config BMX280_DEFAULT_HUMIDITY_OVERSAMPLING_X16
bool "x16"
endchoice
endmenu
endmenu
endmenu