m:robe 100 - Hopefully fix the power-off issue.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16544 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2008-03-07 16:05:22 +00:00
parent 2d8cd814ac
commit 89dc21a582

View file

@ -33,6 +33,10 @@ bool charger_enabled;
void power_init(void)
{
/* Enable power-off bit */
GPIOB_ENABLE |= 0x80;
GPIOB_OUTPUT_VAL &= ~0x80;
GPIOB_OUTPUT_EN |= 0x80;
}
bool charger_inserted(void)