1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

LP-72 - Enable link LED

This commit is contained in:
Alessio Morale 2016-03-21 04:44:11 +01:00 committed by Laurent Lalanne
parent 620a3c0c12
commit cbe52f3f51
2 changed files with 7 additions and 6 deletions

View File

@ -57,22 +57,21 @@ static const struct pios_gpio pios_leds_v2[] = {
},
.active_low = true
},
#if 0
// the other LED in the TL code is accessed this way
// probably needs .active_low = true
[PIOS_LED_LINK] = {
.pin = {
[PIOS_LED_LINK] = {
.pin = {
.gpio = GPIOB,
.init = {
.init = {
.GPIO_Pin = GPIO_Pin_6,
.GPIO_Speed = GPIO_Speed_50MHz,
.GPIO_Mode = GPIO_Mode_OUT,
.GPIO_OType = GPIO_OType_PP,
.GPIO_PuPd = GPIO_PuPd_UP
.GPIO_PuPd = GPIO_PuPd_UP
},
},
.active_low = true
},
#endif
#if (0 && defined(PIOS_RFM22B_DEBUG_ON_TELEM))
// Revo hardware config
[PIOS_LED_D1] = {

View File

@ -76,6 +76,8 @@
// ------------------------
#define PIOS_LED_HEARTBEAT 0
#define PIOS_LED_ALARM 1
#define PIOS_LED_LINK 2
#ifdef PIOS_RFM22B_DEBUG_ON_TELEM
#define PIOS_LED_D1 2
#define PIOS_LED_D2 3