px4:platform support SPI configuration selection on HW REV

This commit is contained in:
David Sidrane
2021-05-10 09:11:50 +02:00
committed by Beat Küng
parent e4ee7c7d98
commit 69e0c2fc10
4 changed files with 13 additions and 6 deletions
@@ -71,7 +71,7 @@ struct px4_spi_bus_t {
struct px4_spi_bus_all_hw_t {
px4_spi_bus_t buses[SPI_BUS_MAX_BUS_ITEMS];
int board_hw_version{-1}; ///< 0=default, >0 for a specific revision (see board_get_hw_version), -1=unused
int board_hw_version_revision{-1}; ///< 0=default, >0 for a specific revision (see board_get_hw_version & board_get_hw_revision), -1=unused
};
#if BOARD_NUM_SPI_CFG_HW_VERSIONS > 1