diff options
author | Lorenz Meier <lm@qgroundcontrol.org> | 2014-11-02 12:18:13 +0100 |
---|---|---|
committer | Lorenz Meier <lm@qgroundcontrol.org> | 2014-11-02 12:18:13 +0100 |
commit | dde42fdba9861efe85259b2ee426b2be13aed0af (patch) | |
tree | 684b481a53026e2a5a1a2076e4857b90603290db /src/modules | |
parent | eeda1886f0e7f15b2e51d863020f794b1a84efc1 (diff) | |
parent | 2cadd45f307750bb68c3f926d7d9830f680bd94b (diff) | |
download | px4-firmware-dde42fdba9861efe85259b2ee426b2be13aed0af.tar.gz px4-firmware-dde42fdba9861efe85259b2ee426b2be13aed0af.tar.bz2 px4-firmware-dde42fdba9861efe85259b2ee426b2be13aed0af.zip |
Merge pull request #1421 from PX4/ledring
Configure led ring and enable heartbeat on it
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/px4iofirmware/px4io.c | 2 | ||||
-rw-r--r-- | src/modules/px4iofirmware/px4io.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/px4io.c b/src/modules/px4iofirmware/px4io.c index cd134ccb4..f978ff406 100644 --- a/src/modules/px4iofirmware/px4io.c +++ b/src/modules/px4iofirmware/px4io.c @@ -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 diff --git a/src/modules/px4iofirmware/px4io.h b/src/modules/px4iofirmware/px4io.h index e32fcc72b..8186e4c78 100644 --- a/src/modules/px4iofirmware/px4io.h +++ b/src/modules/px4iofirmware/px4io.h @@ -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 |