Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rceddc04641038a62bbbd9714a045d0cbfc473c8f -r036a75d76ab01912646a480b935d97187a231a19 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision ceddc04641038a62bbbd9714a045d0cbfc473c8f) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 036a75d76ab01912646a480b935d97187a231a19) @@ -212,6 +212,24 @@ /*********************************************************************//** * @brief + * The fpgaResetTransitoryCmds function resets any transitory commands in + * the actuator registers. + * @note This function should be called by FPGA driver after actuator registers + * copied to transmit buffer to clear command bits that are only intended to + * be sent to FPGA once. + * @details \b Inputs: none + * @details \b Outputs: Transitory command bits cleared + * @return none + *************************************************************************/ +void fpgaResetTransitoryCmds( void ) +{ + // Reset pinch valve position change command bits + setH1Control( ( getH1Control() & ~FPGA_PINCH_VALVES_NEW_POS_CMD ) ); + setH19Control( ( getH19Control() & ~FPGA_PINCH_VALVES_NEW_POS_CMD ) ); +} + +/*********************************************************************//** + * @brief * The execFPGATest function executes the FPGA self-test. * @details \b Alarm: ALARM_ID_TD_FPGA_POST_TEST_FAILED if self-test fails. * @details \b Inputs: fpgaHeader