1
0
Fork 0
forked from len0rd/rockbox

Cosmetic fixes for the iAudio bootloader: Don't display 'Hold switch on' if the reason for getting there was a spurious ON event. Don't disable the multi-colour LED in the M3 bootloader.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2008-03-18 00:17:21 +00:00
parent ed3ff1b0b5
commit d700970f86
2 changed files with 4 additions and 1 deletions

View file

@ -180,6 +180,7 @@ void main(void)
{
/* No need to check for USB connection here, as USB is handled
* in the cowon loader. */
if (on_button || rc_on_button)
printf("Hold switch on");
shutdown();
}

View file

@ -37,9 +37,11 @@ void power_init(void)
and_l(~0x00000020, &GPIO1_ENABLE);
or_l(0x00000020, &GPIO1_FUNCTION);
#ifndef BOOTLOADER
/* FIXME: Just disable the multi-colour LED for now. */
and_l(~0x00000210, &GPIO1_OUT);
and_l(~0x00008000, &GPIO_OUT);
#endif
}
bool charger_inserted(void)