forked from len0rd/rockbox
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:
parent
2d8cd814ac
commit
89dc21a582
1 changed files with 4 additions and 0 deletions
|
|
@ -33,6 +33,10 @@ bool charger_enabled;
|
||||||
|
|
||||||
void power_init(void)
|
void power_init(void)
|
||||||
{
|
{
|
||||||
|
/* Enable power-off bit */
|
||||||
|
GPIOB_ENABLE |= 0x80;
|
||||||
|
GPIOB_OUTPUT_VAL &= ~0x80;
|
||||||
|
GPIOB_OUTPUT_EN |= 0x80;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool charger_inserted(void)
|
bool charger_inserted(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue