From d868aab26aeb92da5da9cf29ad1b86b94a985772 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 21 Aug 2018 21:39:49 +1000 Subject: [PATCH] AP_HAL_Empty: remove pointless attach_interrupt override --- libraries/AP_HAL_Empty/GPIO.cpp | 7 ------- libraries/AP_HAL_Empty/GPIO.h | 5 ----- 2 files changed, 12 deletions(-) diff --git a/libraries/AP_HAL_Empty/GPIO.cpp b/libraries/AP_HAL_Empty/GPIO.cpp index e9b4a07766..694f69e563 100644 --- a/libraries/AP_HAL_Empty/GPIO.cpp +++ b/libraries/AP_HAL_Empty/GPIO.cpp @@ -27,13 +27,6 @@ AP_HAL::DigitalSource* GPIO::channel(uint16_t n) { 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) { return false; diff --git a/libraries/AP_HAL_Empty/GPIO.h b/libraries/AP_HAL_Empty/GPIO.h index 05a4798bae..2148eb546d 100644 --- a/libraries/AP_HAL_Empty/GPIO.h +++ b/libraries/AP_HAL_Empty/GPIO.h @@ -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); };