Monitor UCD90160 for faults at runtime
Add the RuntimeMonitor class that will monitor the
UCD90160 faults in 2 ways:
1) Watch for the PowerLost signal, meaning system
PGOOD was lost. When it occurs, analyze the
chip for errors and then issue a proper shutdown
so a faulted device doesn't keep getting power.
2) Poll on an interval for nonfatal errors that need
to be logged but don't cause a PGOOD loss.
The main executable can now launch either the PGOODMonitor
or the RuntimeMonitor based on commandline arguments.
Change-Id: If2856f173d5d6288d8333538334b4b4cb4a60097
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/Makefile.am b/power-sequencer/Makefile.am
index 485ae3e..1f199ce 100644
--- a/power-sequencer/Makefile.am
+++ b/power-sequencer/Makefile.am
@@ -9,6 +9,7 @@
gpio.cpp \
main.cpp \
pgood_monitor.cpp \
+ runtime_monitor.cpp \
ucd90160.cpp \
ucd90160_defs.cpp