Index: firmware/App/Services/FPGA.c =================================================================== diff -u -rabc9d65a7158bae927614b646ecb6f38a7ef310c -r7da76d7131d824ab15f58857eeeedcf128e57391 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision abc9d65a7158bae927614b646ecb6f38a7ef310c) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 7da76d7131d824ab15f58857eeeedcf128e57391) @@ -23,6 +23,7 @@ #include "Comm.h" #include "Compatible.h" #include "FPGA.h" +#include "PersistentAlarm.h" #include "SystemCommMessages.h" #include "Utilities.h" @@ -100,6 +101,7 @@ #define FPGA_ALARM_AUDIO_VOLUME_SHIFT 3 ///< Shift alarm audio volume 3 bits to left before writing to register. #define FRONT_DOOR_SWITCH_MASK 0x0010 ///< Front door switch bit mask. +#define FPGA_POWER_OUT_TIMEOUT_MS ( 2 * MS_PER_SECOND ) ///< FPGA power out timeout in milliseconds. // FPGA Sensors Record #pragma pack(push,1) @@ -311,6 +313,7 @@ static void startDMAReceiptOfReadResp( void ); static void consumeUnexpectedData( void ); +static void monitorFPGAPowerStatus( void ); /*********************************************************************//** * @brief @@ -930,6 +933,18 @@ /*********************************************************************//** * @brief + * The monitorFPGAPowerStatus function monitors the status of the FPGA power source. + * @details Inputs: none + * @details Outputs: none + * @return none + *************************************************************************/ +static void monitorFPGAPowerStatus( void ) +{ + +} + +/*********************************************************************//** + * @brief * The setupDMAForWriteCmd function sets the byte count for the next DMA * write command to the FPGA. * @details Inputs: none