Apply changes by Kaz Kojima

This commit is contained in:
Kaz Kojima
2010-09-12 16:16:08 +09:00
committed by NIIBE Yutaka
parent c19d29b88f
commit e512507c80
3 changed files with 12 additions and 4 deletions

View File

@@ -53,4 +53,10 @@ void hwinit1(void) {
* ChibiOS/RT initialization.
*/
chSysInit();
/*
* Clear LED and SHUTDOWN output.
*/
palClearPad (IOPORT5, GPIOE_LED);
palClearPad (IOPORT3, GPIOC_SHUTDOWN);
}

View File

@@ -36,9 +36,9 @@ void
USB_Cable_Config (FunctionalState NewState)
{
if (NewState != DISABLE)
palClearPad (IOPORT4, GPIOC_DISC);
palClearPad (IOPORT4, GPIOD_DISC);
else
palSetPad (IOPORT4, GPIOC_DISC);
palSetPad (IOPORT4, GPIOD_DISC);
}
void
@@ -50,7 +50,7 @@ void
set_led (int value)
{
if (value)
palClearPad (IOPORT5, GPIOC_LEDR);
palClearPad (IOPORT5, GPIOE_LEDR);
else
palSetPad (IOPORT5, GPIOC_LEDR);
palSetPad (IOPORT5, GPIOE_LEDR);
}