mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
LP-512 Added buzzer output as PIOS_LED_ALARM.
This commit is contained in:
parent
d1c19fefbd
commit
565014d560
@ -44,6 +44,19 @@ static const struct pios_gpio pios_leds[] = {
|
||||
},
|
||||
.active_low = false
|
||||
},
|
||||
[PIOS_LED_ALARM] = { /* not really LED, but buzzer! */
|
||||
.pin = {
|
||||
.gpio = GPIOC,
|
||||
.init = {
|
||||
.GPIO_Pin = GPIO_Pin_15,
|
||||
.GPIO_Mode = GPIO_Mode_OUT,
|
||||
.GPIO_OType = GPIO_OType_PP,
|
||||
.GPIO_Speed = GPIO_Speed_50MHz,
|
||||
.GPIO_PuPd = GPIO_PuPd_NOPULL,
|
||||
},
|
||||
},
|
||||
.active_low = false
|
||||
},
|
||||
};
|
||||
|
||||
static const struct pios_gpio_cfg pios_led_cfg = {
|
||||
|
@ -85,6 +85,7 @@
|
||||
// PIOS_LED
|
||||
// ------------------------
|
||||
#define PIOS_LED_HEARTBEAT 0
|
||||
#define PIOS_LED_ALARM 1
|
||||
|
||||
// -------------------------
|
||||
// System Settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user