From 9fda608d4af1b009cab7e12d30e6d246ced8de90 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 22 Jul 2016 01:49:27 -0300 Subject: [PATCH] AP_HAL_Empty: SPIDevice: implement fullduplex transfer --- libraries/AP_HAL_Empty/SPIDevice.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_HAL_Empty/SPIDevice.h b/libraries/AP_HAL_Empty/SPIDevice.h index 365cb44831..343c31e2bc 100644 --- a/libraries/AP_HAL_Empty/SPIDevice.h +++ b/libraries/AP_HAL_Empty/SPIDevice.h @@ -49,6 +49,13 @@ public: return true; } + /* See AP_HAL::SPIDevice::transfer_fullduplex() */ + bool transfer_fullduplex(const uint8_t *send, uint8_t *recv, + uint32_t len) override + { + return true; + } + /* See AP_HAL::Device::get_semaphore() */ AP_HAL::Semaphore *get_semaphore() {