Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r6417c75d0c2a9643bcdb797065dbcde59e1dc734 -rf7b149d8b8c9ea6ac58e4739101693d251d7a355 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 6417c75d0c2a9643bcdb797065dbcde59e1dc734) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision f7b149d8b8c9ea6ac58e4739101693d251d7a355) @@ -1461,6 +1461,21 @@ /*********************************************************************//** * @brief + * The getDoorState function gets the current state of door switch. + * @details Inputs: none + * @details Outputs: none + * @return current door state + *************************************************************************/ +OPN_CLS_STATE_T getFPGADoorState( void ) +{ + // TODO: Get actual door state from FPGA or GPIO + BOOL const status = 0x0; + + return ( 0 == status ? STATE_CLOSED : STATE_OPEN ); +} + +/*********************************************************************//** + * @brief * The setFPGAValvesControlMode function sets the valves control mode. * @details Inputs: fpgaActuatorSetPoints * @details Outputs: fpgaActuatorSetPoints