1
0
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:
Vladimir Zidar 2017-05-22 16:33:22 +02:00
parent d1c19fefbd
commit 565014d560
2 changed files with 14 additions and 0 deletions

View File

@ -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 = {

View File

@ -85,6 +85,7 @@
// PIOS_LED
// ------------------------
#define PIOS_LED_HEARTBEAT 0
#define PIOS_LED_ALARM 1
// -------------------------
// System Settings