mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: Remove unreachable ChibiOS defines, enable BoardLed
This commit is contained in:
parent
abda44e886
commit
565a84efcb
|
@ -166,8 +166,17 @@ void AP_Notify::add_backends(void)
|
|||
|
||||
// Notify devices for ChibiOS boards
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
ADD_BACKEND(new ToneAlarm_ChibiOS());
|
||||
# ifdef HAL_HAVE_PIXRACER_LED
|
||||
ADD_BACKEND(new PixRacerLED());
|
||||
# else
|
||||
ADD_BACKEND(new AP_BoardLED());
|
||||
# endif
|
||||
#ifdef HAL_BUZZER_PIN
|
||||
ADD_BACKEND(new Buzzer());
|
||||
#endif
|
||||
#ifdef HAL_PWM_ALARM
|
||||
ADD_BACKEND(new ToneAlarm_ChibiOS());
|
||||
#endif
|
||||
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_EXTERNAL));
|
||||
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_INTERNAL));
|
||||
ADD_BACKEND(new Display());
|
||||
|
@ -243,18 +252,6 @@ void AP_Notify::add_backends(void)
|
|||
ADD_BACKEND(new ToneAlarm_Linux());
|
||||
#endif
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
# ifdef HAL_HAVE_PIXRACER_LED
|
||||
ADD_BACKEND(new PixRacerLED());
|
||||
# else
|
||||
ADD_BACKEND(new AP_BoardLED());
|
||||
# endif
|
||||
#ifdef HAL_BUZZER_PIN
|
||||
ADD_BACKEND(new Buzzer());
|
||||
#endif
|
||||
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_EXTERNAL));
|
||||
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_INTERNAL));
|
||||
ADD_BACKEND(new Display());
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_F4LIGHT
|
||||
ADD_BACKEND(new ToshibaLED_I2C(TOSHIBA_LED_I2C_BUS_EXTERNAL));
|
||||
ADD_BACKEND(new Display());
|
||||
|
|
Loading…
Reference in New Issue