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:
steve.jeong
2022-04-18 17:53:34 +09:00
parent b3d4dfbfb5
commit 4132c07cc9
5 changed files with 19 additions and 13 deletions

6
debian/changelog vendored
View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,2 @@
# /dev/gpiomem
SUBSYSTEM=="rk3568-gpiomem", GROUP="odroid", MODE="0660"

View File

@@ -46,7 +46,8 @@ libwiringPi_la_SOURCES = \
libwiringPi_la_CFLAGS = \
@EXTRA_CFLAGS@ \
$(LIBCRYPT_CFLAGS)
$(LIBCRYPT_CFLAGS) \
-DDEVMEM
libwiringPi_la_LDFLAGS = \
-version-info @LIBWIRINGPI_VERSION@ \

View File

@@ -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);