AP_HAL: Add support for using SPI devices of the same type.

This commit is contained in:
mirkix 2015-09-14 20:44:29 +02:00 committed by Andrew Tridgell
parent 93941c3349
commit f48bdc281f

View File

@ -8,7 +8,7 @@
class AP_HAL::SPIDeviceManager {
public:
virtual void init(void *) = 0;
virtual AP_HAL::SPIDeviceDriver* device(enum AP_HAL::SPIDevice) = 0;
virtual AP_HAL::SPIDeviceDriver* device(enum AP_HAL::SPIDevice, uint8_t index = 0) = 0;
};
/**