-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig.projbuild
151 lines (123 loc) · 4.28 KB
/
Kconfig.projbuild
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
menu "Project Configuration"
menu "LVGL Configuration"
config LVGL_TICK_PERIOD
int "LVGL tick period (ms)"
default 10
endmenu
choice
prompt "Select the temperature sensor to use"
default PRJ_TEMP_SENSOR_SHT4x
config PRJ_TEMP_SENSOR_SHT4x
bool "SHT4x"
config PRJ_TEMP_SENSOR_SHT3x
bool "SHT3x"
config PRJ_TEMP_SENSOR_HDC302x
bool "HDC302x"
endchoice
choice
prompt "Select the pressure sensor to use"
default PRJ_PRESSURE_SENSOR_LPS22HH
config PRJ_PRESSURE_SENSOR_LPS22HH
bool "LPS22HH"
config PRJ_PRESSURE_SENSOR_LPS22HB
bool "LPS22HB"
config PRJ_PRESSURE_SENSOR_LPS22DF
bool "LPS22DF"
endchoice
menu "SHT4x Configuration"
depends on PRJ_TEMP_SENSOR_SHT4x
choice
prompt "Select the SHT4x sensor type"
default PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT40
config PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT40
bool "SHT40"
config PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT41
bool "SHT41"
config PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT45
bool "SHT45"
endchoice
config PRJ_TEMP_SENSOR_SHT4x_ADDR
hex "7-bits I2C address for SHT4x"
default 0x44
choice
prompt "SHT4x percision level"
default PRJ_TEMP_SENSOR_SHT4x_HIGH_PRECISION
config PRJ_TEMP_SENSOR_SHT4x_LOW_PRECISION
bool "Low precision"
config PRJ_TEMP_SENSOR_SHT4x_MED_PRECISION
bool "Medium precision"
config PRJ_TEMP_SENSOR_SHT4x_HIGH_PRECISION
bool "High precision"
endchoice
choice
prompt "SHT4x heater level"
default PRJ_TEMP_SENSOR_SHT4x_NO_HEATER
config PRJ_TEMP_SENSOR_SHT4x_NO_HEATER
bool "No heater"
config PRJ_TEMP_SENSOR_SHT4x_LOW_HEATER_100MS
bool "Low heater 100ms"
config PRJ_TEMP_SENSOR_SHT4x_MED_HEATER_100MS
bool "Medium heater 100ms"
config PRJ_TEMP_SENSOR_SHT4x_HIGH_HEATER_100MS
bool "High heater 100ms"
endchoice
endmenu
menu "SHT3x Configuration"
depends on PRJ_TEMP_SENSOR_SHT3x
choice
prompt "Select the SHT3x sensor type"
default PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT30
config PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT30
bool "SHT30"
config PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT31
bool "SHT31"
config PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT35
bool "SHT35"
endchoice
config PRJ_TEMP_SENSOR_SHT3x_ADDR
hex "7-bits I2C address for SHT3x"
default 0x44
endmenu
menu "HDC302x Configuration"
depends on PRJ_TEMP_SENSOR_HDC302x
config PRJ_TEMP_SENSOR_HDC302x_ADDR
hex "7-bits I2C address for HDC302x"
default 0x44
endmenu
# -------------------- Temperature Sensor Precision ---------------------
# Unit: 0.01 degree Celsius
config PRJ_TEMP_SENSOR_TEMPERATURE_ABSOLUTE_PRECISION
int
default 20 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT40
default 20 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT41
default 10 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT45
default 20 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT30
default 20 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT31
default 10 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT35
default 10 if PRJ_TEMP_SENSOR_HDC302x
# Unit: 0.01 %RH
config PRJ_TEMP_SENSOR_HUMIDITY_ABSOLUTE_PRECISION
int
default 180 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT40
default 180 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT41
default 100 if PRJ_TEMP_SENSOR_SHT4X_TYPE_SHT45
default 200 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT30
default 200 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT31
default 150 if PRJ_TEMP_SENSOR_SHT3x_TYPE_SHT35
default 50 if PRJ_TEMP_SENSOR_HDC302x
# Define PRJ_PRESSURE_SENSOR_LPS22 when any of the LPS22 series sensor is selected
config PRJ_PRESSURE_SENSOR_LPS22
bool
default y if PRJ_PRESSURE_SENSOR_LPS22HH || PRJ_PRESSURE_SENSOR_LPS22HB || PRJ_PRESSURE_SENSOR_LPS22DF
config PRJ_PRESSURE_SENSOR_LPS22_ADDR
hex "7-bits I2C address for LPS22"
default 0x5C
depends on PRJ_PRESSURE_SENSOR_LPS22
# Define macros for pressure sensor precision based on the selected model
# Unit: Pa
config PRJ_PRESSURE_SENSOR_ABSOLUTE_PRECISION
int
default 20 if PRJ_PRESSURE_SENSOR_LPS22DF
default 50 if PRJ_PRESSURE_SENSOR_LPS22HH
default 100 if PRJ_PRESSURE_SENSOR_LPS22HB
endmenu