Add capability of handling GPIO initial values
The edge handling currently allows us to monitor
changes after the service has started. But, a GPIO
could have changed state when the BMC/service is
down and thus potentially missing an error condition.
To address this, two additional keys "INIT_HIGH" and
"INIT_LOW" are added. which will be called at start-up
depending on the current GPIO value.
Tested: Tested on QEMU with a test configuration
and ensured that the systemd units are called
correctly.
Change-Id: I8a6c969b9609080cf0846611831206376fd96c7d
Signed-off-by: Amithash Prasad <amithash@meta.com>
diff --git a/gpioMon.hpp b/gpioMon.hpp
index 9f059f0..2add08c 100644
--- a/gpioMon.hpp
+++ b/gpioMon.hpp
@@ -83,6 +83,9 @@
/** @brief Handle the GPIO event and starts configured target */
void gpioEventHandler();
+
+ /** @brief handle current gpio value */
+ void gpioHandleInitialState(bool value);
};
} // namespace gpio