AP_HAL: allow to have spi device state

This commit is contained in:
Lucas De Marchi 2015-07-02 16:36:28 -03:00 committed by Andrew Tridgell
parent 26c8007c96
commit 384d650a23

View File

@ -38,8 +38,15 @@ public:
SPI_SPEED_LOW, SPI_SPEED_HIGH
};
enum class State : uint8_t {
UNKNOWN,
RUNNING,
FAILED,
};
virtual void set_bus_speed(enum bus_speed speed) {}
virtual void set_state(State state) { };
virtual State get_state() { return State::UNKNOWN; }
};
#endif // __AP_HAL_SPI_DRIVER_H__