AP_HAL_ChibiOS: do not even initialise empty qspi driver

This commit is contained in:
Siddharth Purohit 2021-06-13 22:48:56 +05:30 committed by Andrew Tridgell
parent 2af3864b61
commit 28dbbc2bc4

View File

@ -112,8 +112,6 @@ static ChibiOS::CANIface* canDrivers[HAL_NUM_CAN_IFACES];
#if HAL_USE_WSPI == TRUE && defined(HAL_QSPI_DEVICE_LIST) #if HAL_USE_WSPI == TRUE && defined(HAL_QSPI_DEVICE_LIST)
static ChibiOS::QSPIDeviceManager qspiDeviceManager; static ChibiOS::QSPIDeviceManager qspiDeviceManager;
#else
static Empty::QSPIDeviceManager qspiDeviceManager;
#endif #endif
#if HAL_WITH_IO_MCU #if HAL_WITH_IO_MCU
@ -135,7 +133,11 @@ HAL_ChibiOS::HAL_ChibiOS() :
&uartIDriver, &uartIDriver,
&i2cDeviceManager, &i2cDeviceManager,
&spiDeviceManager, &spiDeviceManager,
#if HAL_USE_WSPI == TRUE && defined(HAL_QSPI_DEVICE_LIST)
&qspiDeviceManager, &qspiDeviceManager,
#else
nullptr,
#endif
&analogIn, &analogIn,
&storageDriver, &storageDriver,
&uartADriver, &uartADriver,