Index: firmware/App/Modes/ModePreTreat.c =================================================================== diff -u -r22a8500467c47070dff55824e2ec567c007434ce -rbe1f6ba8f58abfe098865c85ebca070eb0dde6ce --- firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision 22a8500467c47070dff55824e2ec567c007434ce) +++ firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision be1f6ba8f58abfe098865c85ebca070eb0dde6ce) @@ -8,32 +8,62 @@ * @{ */ +// ********** private definitions ********** + +// ********** private data ********** + static U32 testTimeRemove = 0; +// ********** private function prototypes ********** + +/*********************************************************************//** + * @brief + * The initPreTreatmentMode function initializes the Pre Treatment Mode unit. + * @details \b Inputs: none + * @details \b Outputs: Pre Treatment Mode unit initialized. + * @return none + *************************************************************************/ void initPreTreatmentMode( void ) { testTimeRemove = 0; } +/*********************************************************************//** + * @brief + * The transitionToPreTreatmentMode function prepares for transition to pre-treatment + * mode. + * @details \b Inputs: none + * @details \b Outputs: none + * @return initial state + *************************************************************************/ U32 transitionToPreTreatmentMode( void ) { initPreTreatmentMode(); testTimeRemove = getMSTimerCount(); + return 0; } +/*********************************************************************//** + * @brief + * The execPreTreatmentMode function executes the Pre Treatment Mode state machine. + * @details \b Alarm: TODO fill up once the exec function is complete + * the stop button + * @details \b Inputs: TODO fill up once the exec function is complete + * @details \b Outputs: TODO fill up once the exec function is complete + * @return current state (sub-mode) + *************************************************************************/ U32 execPreTreatmentMode( void ) { - if ( TRUE == didTimeout( testTimeRemove, 10000 ) ) // TODO temporary remove + if ( TRUE == didTimeout( testTimeRemove, 10000 ) ) // TODO temporary test code to just transition to treatment mode { requestNewOperationMode( MODE_TREA ); } return 0; } - /**@}*/