mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Patch #5789 by Mike Sevakis - Proper shut down of Coldfire targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10510 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d158da2f00
commit
f64ad7d8f3
2 changed files with 3 additions and 5 deletions
|
|
@ -59,9 +59,8 @@ bool ide_powered(void)
|
|||
void power_off(void)
|
||||
{
|
||||
set_irq_level(HIGHEST_IRQ_LEVEL);
|
||||
and_l(~0x00000008, &GPIO_OUT);
|
||||
while(1)
|
||||
yield();
|
||||
and_l(~0x00000008, &GPIO_OUT); /* Set KEEPACT low */
|
||||
asm("halt");
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue