summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-09-06 20:42:26 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-09-06 20:42:26 +0530
commita2e3b8ad134b7170dbd0ae585b331d87aa694cb6 (patch)
tree9fcac187b241db34ff0f94af5f61843a5ba3de50 /src/bin/eeze
parente14a11d9fa93c0958d3ae0892841be10b0f5e814 (diff)
eeze: add support of GPIO sysfs detection and watch.
This adds support for detection and watch of GPIO pins in /sys/class/gpio/* This detects both gpiochip<N> & gpio<N>. @feature
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_disk_ls.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/eeze/eeze_disk_ls.c b/src/bin/eeze/eeze_disk_ls.c
index 1c1e6a2b04..7499bf098e 100644
--- a/src/bin/eeze/eeze_disk_ls.c
+++ b/src/bin/eeze/eeze_disk_ls.c
@@ -54,5 +54,18 @@ main(void)
54 eeze_disk_free(disk); 54 eeze_disk_free(disk);
55 eina_stringshare_del(syspath); 55 eina_stringshare_del(syspath);
56 } 56 }
57
58 disks = eeze_udev_find_by_type(EEZE_UDEV_TYPE_GPIO, NULL);
59 printf("Found the following GPIO(s):\n");
60 EINA_LIST_FREE(disks, syspath)
61 {
62 Eeze_Disk *disk;
63
64 disk = eeze_disk_new(syspath);
65 printf("\t%s - %s:%s\n", syspath, eeze_disk_devpath_get(disk), eeze_disk_mount_point_get(disk));
66 eeze_disk_free(disk);
67 eina_stringshare_del(syspath);
68 }
69
57 return 0; 70 return 0;
58} 71}