/************************************************************************* * * Copyright Diality, Inc. 2019-2020. All Rights Reserved. * 181 Technology, Ste. 150 * Irvine, CA 92618 * * Project Denali * * @file ModeInitPOST.c * * @brief Top-level state machine for the initialize & POST mode. * * @date 19-Sep-2019 * *************************************************************************/ #include "Common.h" #include "AlarmLamp.h" #include "Buttons.h" #include "CPLD.h" #include "OperationModes.h" #include "ModeInitPOST.h" // ********** private data ********** // ********** private function prototypes ********** /************************************************************************* * @brief initInitAndPOSTMode * The initInitAndPOSTMode function initializes the Initialize & POST Mode module. * @details * Inputs : none * Outputs : Initialize & POST Mode module initialized. * @param none * @return none *************************************************************************/ void initInitAndPOSTMode( void ) { } /************************************************************************* * @brief transitionToInitAndPOSTMode * The transitionToInitAndPOSTMode function prepares for transition to\n * initialize & POST mode. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void transitionToInitAndPOSTMode( void ) { // temporary test code - solid red alarm lamp RequestLampPattern( LAMP_PATTERN_MANUAL ); setCPLDLampRed( PIN_SIGNAL_HIGH ); } /************************************************************************* * @brief execInitAndPOSTMode * The execInitAndPOSTMode function executes the Initialize & POST Mode state machine. * @details * Inputs : none * Outputs : * @param none * @return none *************************************************************************/ void execInitAndPOSTMode( void ) { BOOL stop = isStopButtonPressed(); if ( TRUE == stop ) { requestNewOperationMode( MODE_STAN ); } }