mirror of
https://gitlab.com/manzerbredes/ina260-sysfs-driver.git
synced 2025-06-05 22:27:40 +00:00
Add metric feature
This commit is contained in:
parent
1e651c5327
commit
451a80d636
2 changed files with 31 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -8,12 +8,12 @@ all: ina260.c
|
|||
make -C $(LML) M=$(PWD) modules
|
||||
|
||||
run: ina260.c
|
||||
-echo 0x40 > /sys/bus/i2c/devices/i2c-2/delete_device
|
||||
-echo 0x41 > /sys/bus/i2c/devices/i2c-2/delete_device
|
||||
-rmmod ina260
|
||||
make clean
|
||||
make
|
||||
insmod ina260.ko
|
||||
echo ina260 0x40 > /sys/bus/i2c/devices/i2c-2/new_device
|
||||
echo ina260 0x41 > /sys/bus/i2c/devices/i2c-2/new_device
|
||||
|
||||
read: read.c
|
||||
gcc $^ -o read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue