Работа с GPIO/en: различия между версиями

Новая страница: «Interrupts can be caught from userspace using the system call poll () and select () on file value. Example see [https://github.com/contactless/wiegand-linux-sysfs]»
(Новая страница: «Example: <pre> root@wirenboard:~# echo 3 > /sys/class/gpio/export # export GPIO No. 3 (TB10 in WB3.3) root@wirenboard:~# cat /sys/class/gpio/gpio3/edge # check…»)
(Новая страница: «Interrupts can be caught from userspace using the system call poll () and select () on file value. Example see [https://github.com/contactless/wiegand-linux-sysfs]»)
Строка 108: Строка 108:




Прерывания можно ловить из userspace с помощью системного вызова epoll() и select() на файл value.
Interrupts can be caught from userspace using the system call poll () and select () on file value.
Пример работы см. [https://github.com/contactless/wiegand-linux-sysfs]
Example see [https://github.com/contactless/wiegand-linux-sysfs]


См. также [http://elinux.org/GPIO elinux.org]
См. также [http://elinux.org/GPIO elinux.org]