From e1889fbf66eb0f18723ace4d562cd60ad87f25c0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 28 Dec 2018 12:12:58 +1100 Subject: [PATCH] AP_HAL: added set_slowdown() to SPIDevice used to slow down a SPI device below normal high speed operation --- libraries/AP_HAL/SPIDevice.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL/SPIDevice.h b/libraries/AP_HAL/SPIDevice.h index 7bb94ec89e..604a18b040 100644 --- a/libraries/AP_HAL/SPIDevice.h +++ b/libraries/AP_HAL/SPIDevice.h @@ -61,6 +61,9 @@ public: /* See Device::adjust_periodic_callback() */ virtual bool adjust_periodic_callback( PeriodicHandle h, uint32_t period_usec) override { return false; } + + // setup a bus clock slowdown factor (optional interface) + virtual void set_slowdown(uint8_t slowdown) {} }; class SPIDeviceManager {