tools: gpiomon/gpionotify: add idle-timeout option
authorGabriel Matni <gabriel.matni@exfo.com>
Mon, 12 Jun 2023 01:30:49 +0000 (21:30 -0400)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 12 Jun 2023 17:29:16 +0000 (19:29 +0200)
commit8e98f04367b508748270176928d5c1c169e9ca47
tree3c1d573d6b10612c815ff38c751e430047872190
parent3fad9c3662122ac6b8c851fda6332ba9468fd640
tools: gpiomon/gpionotify: add idle-timeout option

Add an idle timeout option to gpiomon and gpionotify to exit gracefully
when no event has been detected for a given period.

Signed-off-by: Gabriel Matni <gabriel.matni@exfo.com>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Tested-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpiomon.c
tools/gpionotify.c