Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static ddi_bc_Status_t ddi_bc_Broken ( void   )  [static]

Broken state function.

Function

This function implements the Broken state.

Definition at line 317 of file ddi_bc_sm.c.

References ddi_bc_RampUpdateAlarms(), DDI_BC_STATUS_SUCCESS, g_ddi_bc_Configuration, and _ddi_bc_Cfg::u32StateMachinePeriod.

{

      //--------------------------------------------------------------------------
      // The first order of business is to update alarms.
      //--------------------------------------------------------------------------

      ddi_bc_RampUpdateAlarms();

      //--------------------------------------------------------------------------
      // Increment the state timer.
      //--------------------------------------------------------------------------

      g_ddi_bc_u32StateTimer += g_ddi_bc_Configuration.u32StateMachinePeriod;

      //--------------------------------------------------------------------------
      // The only way to leave this state is with a call to ddi_bc_SetFixed. So,
      // calling this state function does nothing.
      //--------------------------------------------------------------------------

      return (DDI_BC_STATUS_SUCCESS);

}


Generated by  Doxygen 1.6.0   Back to index