AP_HAL_Linux: add missing override keywords

This commit is contained in:
Peter Barker 2019-08-15 14:02:02 +10:00 committed by Peter Barker
parent a8a5ccf51b
commit 1b3e2e3c8b
2 changed files with 15 additions and 15 deletions

View File

@ -120,17 +120,17 @@ private:
public: public:
GPIO_BBB(); GPIO_BBB();
void init(); void init() override;
void pinMode(uint8_t pin, uint8_t output); void pinMode(uint8_t pin, uint8_t output) override;
uint8_t read(uint8_t pin); uint8_t read(uint8_t pin) override;
void write(uint8_t pin, uint8_t value); void write(uint8_t pin, uint8_t value) override;
void toggle(uint8_t pin); void toggle(uint8_t pin) override;
/* Alternative interface: */ /* Alternative interface: */
AP_HAL::DigitalSource* channel(uint16_t n); AP_HAL::DigitalSource* channel(uint16_t n) override;
/* return true if USB cable is connected */ /* return true if USB cable is connected */
bool usb_connected(void); bool usb_connected(void) override;
}; };
} }

View File

@ -46,18 +46,18 @@ namespace Linux {
class GPIO_RPI : public AP_HAL::GPIO { class GPIO_RPI : public AP_HAL::GPIO {
public: public:
GPIO_RPI(); GPIO_RPI();
void init(); void init() override;
void pinMode(uint8_t pin, uint8_t output); void pinMode(uint8_t pin, uint8_t output) override;
void pinMode(uint8_t pin, uint8_t output, uint8_t alt); void pinMode(uint8_t pin, uint8_t output, uint8_t alt) override;
uint8_t read(uint8_t pin); uint8_t read(uint8_t pin) override;
void write(uint8_t pin, uint8_t value); void write(uint8_t pin, uint8_t value) override;
void toggle(uint8_t pin); void toggle(uint8_t pin) override;
/* Alternative interface: */ /* Alternative interface: */
AP_HAL::DigitalSource* channel(uint16_t n); AP_HAL::DigitalSource* channel(uint16_t n) override;
/* return true if USB cable is connected */ /* return true if USB cable is connected */
bool usb_connected(void); bool usb_connected(void) override;
private: private:
volatile uint32_t *_gpio; volatile uint32_t *_gpio;