mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_Empty: Add support for using SPI devices of the same type.
This commit is contained in:
parent
f48bdc281f
commit
07d50b5fbb
@ -41,7 +41,7 @@ EmptySPIDeviceManager::EmptySPIDeviceManager()
|
||||
void EmptySPIDeviceManager::init(void *)
|
||||
{}
|
||||
|
||||
AP_HAL::SPIDeviceDriver* EmptySPIDeviceManager::device(enum AP_HAL::SPIDevice)
|
||||
AP_HAL::SPIDeviceDriver* EmptySPIDeviceManager::device(enum AP_HAL::SPIDevice, uint8_t index)
|
||||
{
|
||||
return &_device;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class Empty::EmptySPIDeviceManager : public AP_HAL::SPIDeviceManager {
|
||||
public:
|
||||
EmptySPIDeviceManager();
|
||||
void init(void *);
|
||||
AP_HAL::SPIDeviceDriver* device(enum AP_HAL::SPIDevice);
|
||||
AP_HAL::SPIDeviceDriver* device(enum AP_HAL::SPIDevice, uint8_t index);
|
||||
private:
|
||||
EmptySPIDeviceDriver _device;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user