OLIMEXINO - Fix build when LEDs not used.

This commit is contained in:
Dominic Clifton 2014-08-01 18:40:10 +01:00
parent 61bdc2ad5d
commit 5451d45f5f
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@
void ledInit(void)
{
#if defined(LED0) || defined(LED1) || defined(LED2)
uint32_t i;
struct {
@ -64,5 +65,7 @@ void ledInit(void)
for (i = 0; i < gpio_count; i++) {
gpioInit(gpio_setup[i].gpio, &gpio_setup[i].cfg);
}
#endif
}