debian: update package version 3.13.2
gpio readall error: gpio pin value dumped when using command "gpio write $PIN $VALUE" and call "gpio readall" ODROID-M1: Add udev rules for gpiomem default: gpiomem change machanism gpiomem or libgpiod use or not -DDEVMEM in wiringPi/Makefile.am (Linux) Android.bp (Android) Signed-off-by: steve.jeong <jkhpro1003@gmail.com> Change-Id: Ie389c338e5082a94638d00983801f18fef1cbfaa
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
||||
odroid-wiringpi (3.13.2) stable; urgency=medium
|
||||
|
||||
* ODROID-M1: Add gpiomem rules
|
||||
|
||||
-- steve <jkhpro1003@gmail.com> Mon, 18 Apr 2022 16:52:03 +0900
|
||||
|
||||
odroid-wiringpi (3.13.1) stable; urgency=medium
|
||||
|
||||
* ODROID-COMMON: Add link libgpiod
|
||||
|
||||
11
debian/odroid-wiringpi.postinst
vendored
11
debian/odroid-wiringpi.postinst
vendored
@@ -8,15 +8,22 @@ msg() {
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
;;
|
||||
if [ -c "/dev/gpiomem" ] && [ "$(stat -c "%a %G" "/dev/gpiomem")" != "660"*"odroid" ]; then
|
||||
msg "Reload udev..."
|
||||
[ -x "$(command -v udevadm)" ] \
|
||||
&& udevadm trigger \
|
||||
|| msg "udevadm not found. Please reboot to take effect"
|
||||
fi
|
||||
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
;;
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
2
udev/rules.d/99-odroid-wiringpi-rockchip.rules
Normal file
2
udev/rules.d/99-odroid-wiringpi-rockchip.rules
Normal file
@@ -0,0 +1,2 @@
|
||||
# /dev/gpiomem
|
||||
SUBSYSTEM=="rk3568-gpiomem", GROUP="odroid", MODE="0660"
|
||||
@@ -46,7 +46,8 @@ libwiringPi_la_SOURCES = \
|
||||
|
||||
libwiringPi_la_CFLAGS = \
|
||||
@EXTRA_CFLAGS@ \
|
||||
$(LIBCRYPT_CFLAGS)
|
||||
$(LIBCRYPT_CFLAGS) \
|
||||
-DDEVMEM
|
||||
|
||||
libwiringPi_la_LDFLAGS = \
|
||||
-version-info @LIBWIRINGPI_VERSION@ \
|
||||
|
||||
@@ -790,11 +790,6 @@ __attribute__ ((unused))static int _digitalRead_gpiod (int pin)
|
||||
printf("gpiod get error\n");
|
||||
gpiod_chip_close(chip);
|
||||
}
|
||||
ret = gpiod_line_request_input(gpiod,CONSUMER);
|
||||
if (ret < 0) {
|
||||
printf("gpiod request error\n");
|
||||
gpiod_line_release(gpiod);
|
||||
}
|
||||
ret = gpiod_line_get_value(gpiod);
|
||||
if (ret < 0) {
|
||||
printf("gpiod get error\n");
|
||||
@@ -900,11 +895,6 @@ __attribute__ ((unused))static int _digitalWrite_gpiod (int pin, int value)
|
||||
gpiod_chip_close(chip);
|
||||
}
|
||||
|
||||
ret = gpiod_line_request_output(gpiod, CONSUMER, 0);
|
||||
if (ret < 0) {
|
||||
printf("gpiod request error\n");
|
||||
gpiod_line_release(gpiod);
|
||||
}
|
||||
switch (value) {
|
||||
case LOW:
|
||||
ret = gpiod_line_set_value(gpiod, 0);
|
||||
|
||||
Reference in New Issue
Block a user