Clean up board specific functions.

This commit is contained in:
NIIBE Yutaka
2010-10-19 13:56:43 +09:00
parent 8a88c279bf
commit e614fad8db
7 changed files with 42 additions and 76 deletions

View File

@@ -51,3 +51,21 @@ void hwinit1(void) {
palClearPad (IOPORT5, GPIOE_LED);
palClearPad (IOPORT3, GPIOC_SHUTDOWN);
}
void
USB_Cable_Config (FunctionalState NewState)
{
if (NewState != DISABLE)
palClearPad (IOPORT4, GPIOD_DISC);
else
palSetPad (IOPORT4, GPIOD_DISC);
}
void
set_led (int value)
{
if (value)
palClearPad (IOPORT5, GPIOE_LEDR);
else
palSetPad (IOPORT5, GPIOE_LEDR);
}