i2c spi: extend BusCLIArguments to handle common driver arguments

This commit is contained in:
Beat Küng
2020-02-29 09:44:46 +01:00
committed by Daniel Agar
parent d1f5b23a5a
commit 134413233a
3 changed files with 201 additions and 14 deletions
+8
View File
@@ -186,6 +186,14 @@ protected:
} // namespace device
#else
enum spi_mode_e {
SPIDEV_MODE0 = 0, /* CPOL=0 CHPHA=0 */
SPIDEV_MODE1 = 1, /* CPOL=0 CHPHA=1 */
SPIDEV_MODE2 = 2, /* CPOL=1 CHPHA=0 */
SPIDEV_MODE3 = 3 /* CPOL=1 CHPHA=1 */
};
#endif // __PX4_LINUX
#endif /* _DEVICE_SPI_H */