A method comprises providing power from a battery to an external device using a first circuit; and receiving power from a first power source to provide power to the battery using a second circuit while providing power to the external device.