AP_Notify: add 1 RGB and board LEDs to BH hat

This commit is contained in:
Aaron Wang Shi 2015-11-28 17:29:35 +08:00 committed by Andrew Tridgell
parent c7a77af47f
commit fc2e810fb2
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ struct AP_Notify::notify_events_type AP_Notify::events;
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLEBRAIN2
AP_BoardLED boardled;
NotifyDevice *AP_Notify::_devices[] = {&boardled};
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BH
AP_BoardLED boardled;
RCOutputRGBLed bhled(HAL_RCOUT_RGBLED_RED, HAL_RCOUT_RGBLED_GREEN, HAL_RCOUT_RGBLED_BLUE);
NotifyDevice *AP_Notify::_devices[] = {&boardled, &bhled};
#else
AP_BoardLED boardled;
ToshibaLED_I2C toshibaled;