diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-06-02 11:38:33 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-06-15 09:29:29 +0200 |
commit | 97f69747d8b11c76df321894344beeae6bafc301 (patch) | |
tree | 5058310cc8675829b3cfb28561926b0c717244f1 /drivers/gpio/gpiolib.c | |
parent | 61f922db72216b00386581c851db9c9095961522 (diff) | |
download | linux-97f69747d8b11c76df321894344beeae6bafc301.tar.gz linux-97f69747d8b11c76df321894344beeae6bafc301.tar.xz |
tools/gpio: add the gpio-event-mon tool
The gpio-event-mon is used from userspace as an example of how
to monitor GPIO line events. It will latch on to a certain
GPIO line on a certain gpiochip and print timestamped events
as they arrive.
Example output:
$ gpio-event-mon -n gpiochip2 -o 0 -r -f
Monitoring line 0 on gpiochip2
Initial line value: 1
GPIO EVENT 946685798487609863: falling edge
GPIO EVENT 946685798732482910: rising edge
GPIO EVENT 946685799115997314: falling edge
GPIO EVENT 946685799381469726: rising edge
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions