Configure led ring and enable heartbeat on it

This commit is contained in:
Lorenz Meier
2014-11-02 10:13:11 +01:00
parent eeda1886f0
commit 2cadd45f30
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -124,6 +124,7 @@ heartbeat_blink(void)
{
static bool heartbeat = false;
LED_BLUE(heartbeat = !heartbeat);
LED_RING(heartbeat);
}
static uint64_t reboot_time;
@@ -191,6 +192,7 @@ user_start(int argc, char *argv[])
LED_AMBER(false);
LED_BLUE(false);
LED_SAFETY(false);
LED_RING(false);
/* turn on servo power (if supported) */
#ifdef POWER_SERVO
+1
View File
@@ -140,6 +140,7 @@ extern pwm_limit_t pwm_limit;
#define LED_BLUE(_s) stm32_gpiowrite(GPIO_LED1, !(_s))
#define LED_AMBER(_s) stm32_gpiowrite(GPIO_LED2, !(_s))
#define LED_SAFETY(_s) stm32_gpiowrite(GPIO_LED3, !(_s))
#define LED_RING(_s) stm32_gpiowrite(GPIO_LED4, !(_s))
#ifdef CONFIG_ARCH_BOARD_PX4IO_V1