Skip to content

Commit 815fe8d

Browse files
committed
[sensor_v1] ina226 pkg adapt sensor_v1 frame
1 parent 24d2675 commit 815fe8d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

peripherals/sensors/ina226/Kconfig

+19-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ menuconfig PKG_USING_INA226
33
bool "ina226: a ina226 package for rt-thread."
44
default n
55
select RT_USING_I2C
6+
select RT_USING_SENSOR
67
help
78
A current monitoring chip from TI, driven through the SENSOR frame.
89

910
if PKG_USING_INA226
1011

12+
config PKG_PACKAGES_NAME_USING_SENSOR_V1
13+
bool
14+
default y
15+
1116
config PKG_USING_INA226_EXAMPLE
1217
bool "Enable ina226 example"
13-
default y
18+
default n
1419

1520
config PKG_INA226_PATH
1621
string
@@ -32,6 +37,19 @@ if PKG_USING_INA226
3237
config PKG_INA226_VER
3338
string
3439
default "latest" if PKG_USING_INA226_LATEST_VERSION
40+
41+
42+
config PKG_USING_INA226_VOLTAGE
43+
bool "Enable ina226 voltage"
44+
default y
45+
46+
config PKG_USING_INA226_CURRENT
47+
bool "Enable ina226 current"
48+
default y
49+
50+
config PKG_USING_INA226_POWER
51+
bool "Enable ina226 power"
52+
default y
3553

3654
endif
3755

0 commit comments

Comments
 (0)