diff --git a/libraries/AP_HAL/SPIDevice.h b/libraries/AP_HAL/SPIDevice.h index 8ae4afebb7..39b03982d1 100644 --- a/libraries/AP_HAL/SPIDevice.h +++ b/libraries/AP_HAL/SPIDevice.h @@ -63,6 +63,12 @@ public: { return nullptr; } + + /* Return the number of SPI devices currently registered. */ + virtual uint8_t get_count() { return 0; } + + /* Get spi device name at @idx */ + virtual const char *get_device_name(uint8_t idx) { return 0; } }; }