Notify: add OreoLED to PX4

This commit is contained in:
Randy Mackay 2015-02-07 12:24:37 +09:00
parent ab96e98815
commit b8ef765b3e
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,8 @@ struct AP_Notify::notify_events_type AP_Notify::events;
AP_BoardLED boardled;
ToshibaLED_PX4 toshibaled;
ToneAlarm_PX4 tonealarm;
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &toshibaled, &tonealarm};
OreoLED_PX4 oreoled;
NotifyDevice *AP_Notify::_devices[CONFIG_NOTIFY_DEVICES_COUNT] = {&boardled, &toshibaled, &tonealarm, &oreoled};
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
AP_BoardLED boardled;
ExternalLED externalled;

View File

@ -29,9 +29,10 @@
#include <ExternalLED.h>
#include <Buzzer.h>
#include <VRBoard_LED.h>
#include <OreoLED_PX4.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
#define CONFIG_NOTIFY_DEVICES_COUNT 3
#define CONFIG_NOTIFY_DEVICES_COUNT 4
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
#define CONFIG_NOTIFY_DEVICES_COUNT 3
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN