|
|
|
@ -25,9 +25,9 @@ void AP_Notify::init(bool enable_external_leds)
@@ -25,9 +25,9 @@ void AP_Notify::init(bool enable_external_leds)
|
|
|
|
|
AP_Notify::flags.external_leds = enable_external_leds; |
|
|
|
|
|
|
|
|
|
boardled.init(); |
|
|
|
|
toshibaled.init(); |
|
|
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 |
|
|
|
|
toshibaled.init(); |
|
|
|
|
tonealarm.init(); |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2 |
|
|
|
@ -35,6 +35,7 @@ void AP_Notify::init(bool enable_external_leds)
@@ -35,6 +35,7 @@ void AP_Notify::init(bool enable_external_leds)
|
|
|
|
|
buzzer.init(); |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN |
|
|
|
|
toshibaled.init(); |
|
|
|
|
externalled.init(); |
|
|
|
|
buzzer.init(); |
|
|
|
|
#endif |
|
|
|
@ -44,9 +45,9 @@ void AP_Notify::init(bool enable_external_leds)
@@ -44,9 +45,9 @@ void AP_Notify::init(bool enable_external_leds)
|
|
|
|
|
void AP_Notify::update(void) |
|
|
|
|
{ |
|
|
|
|
boardled.update(); |
|
|
|
|
toshibaled.update(); |
|
|
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 |
|
|
|
|
toshibaled.update(); |
|
|
|
|
tonealarm.update(); |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2 |
|
|
|
@ -54,6 +55,7 @@ void AP_Notify::update(void)
@@ -54,6 +55,7 @@ void AP_Notify::update(void)
|
|
|
|
|
buzzer.update(); |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN |
|
|
|
|
toshibaled.update(); |
|
|
|
|
externalled.update(); |
|
|
|
|
buzzer.update(); |
|
|
|
|
#endif |
|
|
|
|