Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r5adaa0ae1236d34fca1fc8def7fa107ec470115e -r0d46714bc22f87f7027c6e82ad59cef1a01ff69b --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 5adaa0ae1236d34fca1fc8def7fa107ec470115e) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 0d46714bc22f87f7027c6e82ad59cef1a01ff69b) @@ -46,7 +46,7 @@ } FPGA_STATE_T; #define FPGA_PAGE_SIZE 256 ///< FPGA page size. -#define FPGA_EXPECTED_ID 0x60 ///< FPGA expected ID. +#define FPGA_EXPECTED_ID 0x61 ///< FPGA expected ID. #define FPGA_HEADER_START_ADDR 0x0000 ///< FPGA header start address. #define FPGA_BULK_READ_START_ADDR 0x0100 ///< FPGA bulk read start address. @@ -176,7 +176,7 @@ U16 fpgaFanOut2Pulse; ///< Reg 398. Fan outlet 2 pulse time in 2.5 resolution U16 fpgaFanIn3Pulse; ///< Reg 400. Fan inlet 3 pulse time in 2.5 resolution U16 fpgaFanOut3Pulse; ///< Reg 402. Fan outlet 3 pulse time in 2.5 resolution - + U16 fpgaTimerCount; ///< Reg 404. Internal FPGA timer count. } DG_FPGA_SENSORS_T; typedef struct @@ -1788,6 +1788,18 @@ /*********************************************************************//** * @brief + * The getFPGATimerCount function gets the latest FPGA timer count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return last FPGA timer count + *************************************************************************/ +U16 getFPGATimerCount( void ) +{ + return fpgaSensorReadings.fpgaTimerCount; +} + +/*********************************************************************//** + * @brief * The noFluidLeakDetected function returns TRUE if no fluid leak has been * detected (dry) and FALSE if a fluid leak has been detected (wet). * @details Inputs: fpgaSensorReadings