Browse Source

AP_HAL:SPIDevice: Added functions for spi registered device.

master
hiro2233 9 years ago committed by Lucas De Marchi
parent
commit
1a8fa6ac5a
  1. 6
      libraries/AP_HAL/SPIDevice.h

6
libraries/AP_HAL/SPIDevice.h

@ -63,6 +63,12 @@ public: @@ -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; }
};
}

Loading…
Cancel
Save