Skip to content

Commit 593b1b3

Browse files
max30102 adapt sensor_v1 frame (#1823)
1 parent 97f86f3 commit 593b1b3

File tree

1 file changed

+22
-17
lines changed
  • peripherals/sensors/max30102

1 file changed

+22
-17
lines changed

peripherals/sensors/max30102/Kconfig

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,10 @@ if PKG_USING_MAX30102
1010
string
1111
default "/packages/peripherals/sensors/max30102"
1212

13-
choice
14-
prompt "Version"
15-
default PKG_USING_MAX30102_LATEST_VERSION
16-
help
17-
Select the package version
18-
19-
config PKG_USING_MAX30102_V100
20-
bool "v1.0.0"
21-
22-
config PKG_USING_MAX30102_LATEST_VERSION
23-
bool "latest"
24-
endchoice
25-
26-
config PKG_MAX30102_VER
27-
string
28-
default "v1.0.0" if PKG_USING_MAX30102_V100
29-
default "latest" if PKG_USING_MAX30102_LATEST_VERSION
13+
config PKG_MAX30102_USING_SENSOR_V1
14+
bool "Enable sensor_v1 divce framework"
15+
select RT_USING_SENSOR
16+
default n
3017

3118
config MAX30102_STACK_SIZE
3219
int "max30102 thread stack size"
@@ -44,5 +31,23 @@ if PKG_USING_MAX30102
4431
bool "max30102 example"
4532
default y
4633

34+
config PKG_MAX30102_VER
35+
string
36+
default "v1.0.0" if PKG_USING_MAX30102_V100
37+
default "latest" if PKG_USING_MAX30102_LATEST_VERSION
38+
39+
choice
40+
prompt "Version"
41+
default PKG_USING_MAX30102_LATEST_VERSION
42+
help
43+
Select the package version
44+
45+
config PKG_USING_MAX30102_V100
46+
bool "v1.0.0"
47+
48+
config PKG_USING_MAX30102_LATEST_VERSION
49+
bool "latest"
50+
endchoice
51+
4752
endif
4853

0 commit comments

Comments
 (0)