mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: fixes for HAL_GPIO_*
This commit is contained in:
parent
4c43cd9775
commit
50c08ced4c
|
@ -22,9 +22,9 @@ extern const AP_HAL::HAL& hal;
|
|||
void AP_BoardLED::init(void)
|
||||
{
|
||||
// setup the main LEDs as outputs
|
||||
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_C_LED_PIN, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(HAL_GPIO_A_LED_PIN, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(HAL_GPIO_B_LED_PIN, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(HAL_GPIO_C_LED_PIN, HAL_GPIO_OUTPUT);
|
||||
|
||||
// turn all lights off
|
||||
hal.gpio->write(HAL_GPIO_A_LED_PIN, HAL_GPIO_LED_OFF);
|
||||
|
|
|
@ -31,7 +31,7 @@ void Buzzer::init()
|
|||
}
|
||||
|
||||
// setup the pin and ensure it's off
|
||||
hal.gpio->pinMode(BUZZER_PIN, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(BUZZER_PIN, HAL_GPIO_OUTPUT);
|
||||
on(false);
|
||||
|
||||
// set initial boot states. This prevents us issueing a arming
|
||||
|
|
|
@ -28,10 +28,10 @@ void ExternalLED::init(void)
|
|||
}
|
||||
|
||||
// setup the main LEDs as outputs
|
||||
hal.gpio->pinMode(EXTERNAL_LED_ARMED, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_GPS, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_MOTOR1, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_MOTOR2, GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_ARMED, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_GPS, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_MOTOR1, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->pinMode(EXTERNAL_LED_MOTOR2, HAL_GPIO_OUTPUT);
|
||||
|
||||
// turn leds off
|
||||
hal.gpio->write(EXTERNAL_LED_ARMED, HAL_GPIO_LED_OFF);
|
||||
|
|
Loading…
Reference in New Issue