Gigabeat S bootloader: Fix archaic call placement in dptc_stop which hangs the bootloader before jumping to FW. Let the backlight LED ramp up after unplugging USB which just looks better.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25840 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
992b7e10b8
commit
0defb8483c
2 changed files with 8 additions and 4 deletions
|
@ -143,6 +143,9 @@ static void handle_usb(void)
|
|||
button_close();
|
||||
backlight_close();
|
||||
|
||||
/* Sleep a little to let the backlight ramp up */
|
||||
sleep(HZ*5/4);
|
||||
|
||||
reset_screen();
|
||||
}
|
||||
|
||||
|
|
|
@ -571,14 +571,15 @@ static void dptc_stop(void)
|
|||
|
||||
if (dptc_running)
|
||||
{
|
||||
dptc_running = false;
|
||||
|
||||
/* Disable DPTC and mask interrupt. */
|
||||
CCM_PMCR0 = (CCM_PMCR0 & ~CCM_PMCR0_DPTEN) | CCM_PMCR0_PTVAIM;
|
||||
avic_disable_int(INT_CCM_CLK);
|
||||
dptc_running = false;
|
||||
}
|
||||
|
||||
/* Go back to default working point. */
|
||||
dptc_new_wp(DPTC_WP_DEFAULT);
|
||||
/* Go back to default working point. */
|
||||
dptc_new_wp(DPTC_WP_DEFAULT);
|
||||
}
|
||||
|
||||
restore_irq(oldlevel);
|
||||
|
||||
|
|
Loading…
Reference in a new issue