mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 07:20:34 +08:00
i2c spi: extend BusCLIArguments to handle common driver arguments
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user