mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
AP_HAL_Empty: remove pointless attach_interrupt override
This commit is contained in:
parent
fcacdb42bb
commit
d868aab26a
@ -27,13 +27,6 @@ AP_HAL::DigitalSource* GPIO::channel(uint16_t n) {
|
|||||||
return new DigitalSource(0);
|
return new DigitalSource(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interrupt interface: */
|
|
||||||
bool GPIO::attach_interrupt(uint8_t interrupt_num,
|
|
||||||
irq_handler_fn_t fn,
|
|
||||||
INTERRUPT_TRIGGER_TYPE mode) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GPIO::usb_connected(void)
|
bool GPIO::usb_connected(void)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -14,11 +14,6 @@ public:
|
|||||||
/* Alternative interface: */
|
/* Alternative interface: */
|
||||||
AP_HAL::DigitalSource* channel(uint16_t n);
|
AP_HAL::DigitalSource* channel(uint16_t n);
|
||||||
|
|
||||||
/* Interrupt interface: */
|
|
||||||
bool attach_interrupt(uint8_t interrupt_num,
|
|
||||||
irq_handler_fn_t fn,
|
|
||||||
INTERRUPT_TRIGGER_TYPE mode) override;
|
|
||||||
|
|
||||||
/* return true if USB cable is connected */
|
/* return true if USB cable is connected */
|
||||||
bool usb_connected(void);
|
bool usb_connected(void);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user