BoardLEDs: all leds off during init

This commit is contained in:
Randy Mackay 2013-10-29 10:53:36 +09:00
parent 2016bf1f31
commit 24147a370a
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ void AP_BoardLED::init(void)
hal.gpio->pinMode(HAL_GPIO_A_LED_PIN, GPIO_OUTPUT); hal.gpio->pinMode(HAL_GPIO_A_LED_PIN, GPIO_OUTPUT);
hal.gpio->pinMode(HAL_GPIO_B_LED_PIN, GPIO_OUTPUT); hal.gpio->pinMode(HAL_GPIO_B_LED_PIN, GPIO_OUTPUT);
hal.gpio->pinMode(HAL_GPIO_C_LED_PIN, GPIO_OUTPUT); hal.gpio->pinMode(HAL_GPIO_C_LED_PIN, GPIO_OUTPUT);
// turn all lights off
hal.gpio->write(HAL_GPIO_A_LED_PIN, HAL_GPIO_LED_OFF);
hal.gpio->write(HAL_GPIO_B_LED_PIN, HAL_GPIO_LED_OFF);
hal.gpio->write(HAL_GPIO_C_LED_PIN, HAL_GPIO_LED_OFF);
} }
/* /*