1
0
Fork 0
forked from len0rd/rockbox

No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo: remove now false voltage reading from charging screen.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2003-12-03 01:03:54 +00:00
parent 99c218a272
commit 44298163ba
8 changed files with 53 additions and 11 deletions

View file

@ -139,8 +139,9 @@ void PlatformInit(void)
PBDR |= 0x20; // set PB5 to keep power (fixes the ON-holding problem)
PBIOR |= 0x20; // make PB5 an output
if (ReadADC(0) < 0x1FF) // charger plugged?
{
// how do we switch this off?
{ // switch off the HD, else a flat battery may not start
PACR2 &= 0xFBFF; // GPIO for PA5
PAIOR |= 0x20; // make PA5 an output (low by default)
}
#endif