1
0
Fork 0
forked from len0rd/rockbox

a very basic power_off function

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16319 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Christian Gmeiner 2008-02-16 13:01:30 +00:00
parent 55e7f11c44
commit 5df1273741

View file

@ -42,7 +42,11 @@ bool ide_powered(void)
void power_off(void)
{
#warning function not implemented
/* Disable interrupts on this core */
set_interrupt_status(IRQ_FIQ_DISABLED, IRQ_FIQ_STATUS);
/* Shutdown: stop XIN oscillator */
CLKCTRL &= ~(1 << 31);
}
#else /* SIMULATOR */