mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_Linux: add missing override keywords
This commit is contained in:
parent
a8a5ccf51b
commit
1b3e2e3c8b
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user