AP_HAL: added set_slowdown() to SPIDevice

used to slow down a SPI device below normal high speed operation
This commit is contained in:
Andrew Tridgell 2018-12-28 12:12:58 +11:00 committed by Randy Mackay
parent 058980a94d
commit e1889fbf66
1 changed files with 3 additions and 0 deletions

View File

@ -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 {