Add support for FLAG_ACTIVE_LOW in libgpiod

During the port to meson, this parameter needs to be set to avoid a
build error. Instead of defaulting to zero, it makes sense to use
FLAG_ACTIVE_LOW where appropriate.

The benefits are that get_value() returns the asserted status of the
GPIO which simplifies checking for events, and 'gpioinfo' now shows
which GPIO lines are configured as active-low.

Tested:
Confirmed that both active-high and active-low events are detected
correctly.

Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: I515bee9f29b64bfd63f125be9676aaaacbd855c5
5 files changed
tree: 509147414479d30cfbf6225eb18fd03ebf68ecc7
  1. include/
  2. service_files/
  3. src/
  4. .clang-format
  5. cmake-format.json
  6. CMakeLists.txt
  7. LICENSE
  8. MAINTAINERS
  9. OWNERS
  10. README.md
README.md

host-error-monitor

The host-error-monitor application is intended to monitor various host error signals and take appropriate action (logging, crashdump, reset, etc.) when triggered.