AP_HAL_SITL: remove pointless attach_interrupt override

This commit is contained in:
Peter Barker 2018-08-21 21:40:25 +10:00 committed by Peter Barker
parent 42c711a5b2
commit e7e2a78d35
2 changed files with 0 additions and 13 deletions

View File

@ -52,14 +52,6 @@ AP_HAL::DigitalSource* GPIO::channel(uint16_t n) {
}
/* 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)
{
return false;

View File

@ -14,11 +14,6 @@ public:
/* Alternative interface: */
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 */
bool usb_connected(void);