From 5c1e7abf0e33901a38d0549d354a747949c6b0c2 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Mon, 17 Dec 2012 17:12:15 -0800 Subject: [PATCH] AP_HAL_Empty: add spi driver transaction --- libraries/AP_HAL_Empty/SPIDriver.cpp | 4 ++++ libraries/AP_HAL_Empty/SPIDriver.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libraries/AP_HAL_Empty/SPIDriver.cpp b/libraries/AP_HAL_Empty/SPIDriver.cpp index 77b717ac3a..9d432faf9e 100644 --- a/libraries/AP_HAL_Empty/SPIDriver.cpp +++ b/libraries/AP_HAL_Empty/SPIDriver.cpp @@ -14,6 +14,10 @@ AP_HAL::Semaphore* EmptySPIDeviceDriver::get_semaphore() return &_semaphore; } +void EmptySPIDeviceDriver::transaction(const uint8_t *tx, uint8_t *rx, uint16_t len) +{} + + void EmptySPIDeviceDriver::cs_assert() {} diff --git a/libraries/AP_HAL_Empty/SPIDriver.h b/libraries/AP_HAL_Empty/SPIDriver.h index 9ecd3c0d2d..c0315ca425 100644 --- a/libraries/AP_HAL_Empty/SPIDriver.h +++ b/libraries/AP_HAL_Empty/SPIDriver.h @@ -10,6 +10,8 @@ public: EmptySPIDeviceDriver(); void init(); AP_HAL::Semaphore* get_semaphore(); + void transaction(const uint8_t *tx, uint8_t *rx, uint16_t len); + void cs_assert(); void cs_release(); uint8_t transfer (uint8_t data);