Index: firmware/App/Services/FPGA.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r31c4bf94671f58375d2e1dbbbb37b37c6949e0c4 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 31c4bf94671f58375d2e1dbbbb37b37c6949e0c4) @@ -238,7 +238,9 @@ static FPGA_HEADER_T fpgaHeader; ///< Record of last received FPGA header data. static FPGA_SENSORS_T fpgaSensorReadings; ///< Record of last received FPGA priority sensor data. static FPGA_ACTUATORS_T fpgaActuatorSetPoints; ///< Record of next transmitted FPGA priority actuator data. +#ifdef READ_FPGA_ASYNC_DATA static FPGA_SENSORS_ASYNC_T fpgaSensorReadingsAsync; ///< Record of last received async (as needed) FPGA sensor data. +#endif // ********** private function prototypes ********** @@ -1014,19 +1016,21 @@ setSCI2DMAReceiveInterrupt(); } -/*********************************************************************//** - * @brief - * The getFPGAStatus function gets the version read from the diagnostic register \n - * of the FPGA. - * @details - * Inputs : fpgaHeader - * Outputs : none - * @return fpgaHeader.fpgaStatus - *************************************************************************/ -U16 getFPGAStatus( void ) -{ - return fpgaHeader.fpgaStatus; -} +/*********************************************************************//** + * @brief + * The getFPGAVersions function gets the fpga version numbers. + * @details + * Inputs : fpgaHeader + * Outputs : none + * @return none + *************************************************************************/ +void getFPGAVersions( U08 *Id, U08 *Maj, U08 *Min, U08 *Lab ) +{ + *Id = fpgaHeader.fpgaId; + *Maj = fpgaHeader.fpgaRev; + *Min = fpgaHeader.fpgaRevMajor; + *Lab = fpgaHeader.fpgaRevLab; +} /*********************************************************************//** * @brief