-
Notifications
You must be signed in to change notification settings - Fork 12
/
Kconfig
159 lines (149 loc) · 5.77 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
menu "BMX280 Options"
choice I2C_DRIVER_SETTING
prompt "I2C driver setting"
help
Select I2C Driver: I2C Legacy Driver: I2C.h , I2C Master Driver i2c_master.h for ESP-IDF >= 5.3 AND Set I2C Clock Speed.
default USE_I2C_LEGACY_DRIVER
config USE_I2C_LEGACY_DRIVER
bool "I2C Legacy Driver (I2C.h)"
help
Use I2C Legacy Driver (I2C.h).
config USE_I2C_MASTER_DRIVER
bool "I2C Master Driver (i2c_master.h)"
help
Use I2C Master Driver (i2c_master.h) for ESP-IDF >= 5.3.
endchoice
config BMX280_I2C_CLK_SPEED_HZ
int "I2C Clock Speed (Hz)"
default 100000
range 1000 400000
help
Set the I2C clock speed in Hz. Only applies to the new I2C Master driver.
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_ADDRESS_LO
bool "0x76 (SDO LOW)"
config BMX280_ADDRESS_HI
bool "0x77 (SDO HIGH)"
endchoice
config BMX280_TIMEOUT
int "Read/Write Timeout"
default 50
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