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

void ddi_bc_hwSetChargerPower ( int  on  ) 

Turn the charging hardware on or off.

Function

This function turns the charging hardware on or off.

Parameters:
[in] on Indicates whether the charging hardware should be on or off.

Definition at line 244 of file ddi_bc_hw.c.

References ddi_power_SetChargerPowered().

Referenced by ddi_bc_RampStep().

{

      //--------------------------------------------------------------------------
      // Note that the bit we're looking at is named PWD_BATTCHRG. The "PWD"
      // stands for "power down". Thus, when the bit is set, the battery charger
      // hardware is POWERED DOWN.
      //--------------------------------------------------------------------------

      //--------------------------------------------------------------------------
      // Hit the power switch.
      //--------------------------------------------------------------------------

      //TODO: replace ddi_bc_hwSetChargerPower with functino below
      ddi_power_SetChargerPowered(on);
}


Generated by  Doxygen 1.6.0   Back to index