SPI config: use enum to specify bus

This commit is contained in:
Beat Küng
2020-03-02 16:18:04 +01:00
committed by Daniel Agar
parent 37846a177c
commit 335623e11d
26 changed files with 111 additions and 89 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
#include <nuttx/spi/spi.h>
constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
initSPIBus(1, {
initSPIBus(SPI::Bus::SPI1, {
initSPIDevice(DRV_IMU_DEVTYPE_MPU9250, SPI::CS{GPIO::PortA, GPIO::Pin4}),
}),
};