Notify: remove reliance on Led class

This commit is contained in:
Randy Mackay 2014-12-26 13:05:15 +09:00
parent 860e4b1ce2
commit 352b52d73f
4 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@
#include <AP_Common.h> #include <AP_Common.h>
#include <AP_HAL.h> #include <AP_HAL.h>
#include "Led.h" #include "NotifyDevice.h"
#define HIGH 1 #define HIGH 1
#define LOW 0 #define LOW 0
@ -71,7 +71,7 @@
#error "Unknown board type in AP_Notify" #error "Unknown board type in AP_Notify"
#endif #endif
class AP_BoardLED: public Led class AP_BoardLED: public NotifyDevice
{ {
public: public:
// initialise the LED driver // initialise the LED driver

View File

@ -21,7 +21,7 @@
#include <AP_Common.h> #include <AP_Common.h>
#include <AP_HAL.h> #include <AP_HAL.h>
#include <AP_Param.h> #include <AP_Param.h>
#include "Led.h" #include "NotifyDevice.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 #if CONFIG_HAL_BOARD == HAL_BOARD_APM2
#define EXTERNAL_LED_ARMED 61 // Armed LED - AN7 #define EXTERNAL_LED_ARMED 61 // Armed LED - AN7
@ -45,7 +45,7 @@
#define EXTERNAL_LED_MOTOR2 0 #define EXTERNAL_LED_MOTOR2 0
#endif #endif
class ExternalLED: public Led class ExternalLED: public NotifyDevice
{ {
public: public:
// constructor // constructor

View File

@ -18,7 +18,7 @@
#include <AP_HAL.h> #include <AP_HAL.h>
#include <AP_GPS.h> #include <AP_GPS.h>
#include "Led.h" #include "RGBLed.h"
#include "AP_Notify.h" #include "AP_Notify.h"
extern const AP_HAL::HAL& hal; extern const AP_HAL::HAL& hal;

View File

@ -22,9 +22,9 @@
#define __RGBLED_H__ #define __RGBLED_H__
#include <AP_HAL.h> #include <AP_HAL.h>
#include "Led.h" #include "NotifyDevice.h"
class RGBLed: public Led { class RGBLed: public NotifyDevice {
public: public:
RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim); RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim);