1
0
Fork 0
forked from len0rd/rockbox

M:Robe 500: Correct power down pin assignment.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23091 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-10-11 06:58:43 +00:00
parent d784507e93
commit d6227edbb5

View file

@ -36,7 +36,7 @@ void power_init(void)
/* Initialize IDE power pin */ /* Initialize IDE power pin */
/* set GIO17 (ATA power) on and output */ /* set GIO17 (ATA power) on and output */
ide_power_enable(true); ide_power_enable(true);
IO_GIO_DIR1&=~(1<<1); IO_GIO_DIR1 &= ~(1<<1);
/* Charger detect */ /* Charger detect */
} }
@ -59,9 +59,9 @@ bool charging_state(void)
void ide_power_enable(bool on) void ide_power_enable(bool on)
{ {
if (on) if (on)
IO_GIO_BITCLR1=(1<<1); IO_GIO_BITCLR1 = (1<<1);
else else
IO_GIO_BITSET1=(1<<1); IO_GIO_BITSET1 = (1<<1);
} }
bool ide_powered(void) bool ide_powered(void)
@ -79,6 +79,6 @@ void power_off(void)
lcd_sleep(); lcd_sleep();
sleep(HZ); sleep(HZ);
/* Hard shutdown */ /* Hard shutdown */
IO_GIO_DIR1&=~(1<<10); IO_GIO_DIR1 &= ~(1<<10);
IO_GIO_BITSET1|=1<<10; IO_GIO_BITSET1 = 1<<10;
} }