@@ -10,26 +10,37 @@ if PKG_USING_AHT10
10
10
string
11
11
default "/packages/peripherals/sensors/aht10"
12
12
13
- config AHT10_USING_SOFT_FILTER
13
+ config PKG_AHT10_USING_SOFT_FILTER
14
14
bool "Enable average filter by software"
15
15
default n
16
16
help
17
17
"It will automatic sample sensor's data by average filter thread."
18
18
19
- config AHT10_USING_SENSOR_DEVICE
19
+ config PKG_AHT10_USING_SENSOR_V2
20
20
bool "Enable sensor divce framework"
21
+ depends on RT_VER_NUM >= 0x50001
21
22
select RT_USING_SENSOR
23
+ select RT_USING_SENSOR_V2
22
24
default n
25
+
26
+ config PKG_USING_AHT10_SAMPLE
27
+ bool "Enable aht10 sample"
28
+ default n
29
+ if PKG_USING_AHT10_SAMPLE
30
+ config PKG_AHT10_I2C_BUS_NAME
31
+ string "The name of the I2C bus used by AHT10"
32
+ default "i2c3"
33
+ endif
23
34
24
- if AHT10_USING_SOFT_FILTER
35
+ if PKG_AHT10_USING_SOFT_FILTER
25
36
26
- config AHT10_AVERAGE_TIMES
37
+ config PKG_AHT10_AVERAGE_TIMES
27
38
int "The number of averaging"
28
39
default 10
29
40
help
30
41
"When selected filter function, it will be the number you will average."
31
42
32
- config AHT10_SAMPLE_PERIOD
43
+ config PKG_AHT10_SAMPLE_PERIOD
33
44
int "Peroid of sampling data(unit ms)"
34
45
default 1000
35
46
help
@@ -43,7 +54,11 @@ if PKG_USING_AHT10
43
54
44
55
config PKG_USING_AHT10_LATEST_VERSION
45
56
bool "latest"
46
- depends on RT_VER_NUM >= 0x50000
57
+ depends on RT_VER_NUM >= 0x50001
58
+
59
+ config PKG_USING_AHT10_V300
60
+ bool "v3.0.0"
61
+ depends on RT_VER_NUM >= 0x50001 || RT_USING_SENSOR_V2
47
62
48
63
config PKG_USING_AHT10_V210
49
64
bool "v2.1.0"
@@ -64,6 +79,7 @@ if PKG_USING_AHT10
64
79
default "v1.0.0" if PKG_USING_AHT10_V100
65
80
default "v2.0.0" if PKG_USING_AHT10_V200
66
81
default "v2.1.0" if PKG_USING_AHT10_V210
82
+ default "v3.0.0" if PKG_USING_AHT10_V300
67
83
default "latest" if PKG_USING_AHT10_LATEST_VERSION
68
84
69
85
endif
0 commit comments