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:
parent
620a3c0c12
commit
cbe52f3f51
@ -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] = {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user