mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9941 from marcuschangarm/fix-rspif
Add missing RSPIF component to the defaut BlockDevice handlerpull/10086/head
commit
78a3d99c81
|
|
@ -25,6 +25,10 @@
|
||||||
#include "SPIFBlockDevice.h"
|
#include "SPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if COMPONENT_RSPIF
|
||||||
|
#include "SPIFReducedBlockDevice.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_QSPIF
|
#if COMPONENT_QSPIF
|
||||||
#include "QSPIFBlockDevice.h"
|
#include "QSPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -92,6 +96,18 @@ MBED_WEAK BlockDevice *BlockDevice::get_default_instance()
|
||||||
|
|
||||||
return &default_bd;
|
return &default_bd;
|
||||||
|
|
||||||
|
#elif COMPONENT_RSPIF
|
||||||
|
|
||||||
|
static SPIFReducedBlockDevice default_bd(
|
||||||
|
MBED_CONF_RSPIF_DRIVER_SPI_MOSI,
|
||||||
|
MBED_CONF_RSPIF_DRIVER_SPI_MISO,
|
||||||
|
MBED_CONF_RSPIF_DRIVER_SPI_CLK,
|
||||||
|
MBED_CONF_RSPIF_DRIVER_SPI_CS,
|
||||||
|
MBED_CONF_RSPIF_DRIVER_SPI_FREQ
|
||||||
|
);
|
||||||
|
|
||||||
|
return &default_bd;
|
||||||
|
|
||||||
#elif COMPONENT_QSPIF
|
#elif COMPONENT_QSPIF
|
||||||
|
|
||||||
static QSPIFBlockDevice default_bd(
|
static QSPIFBlockDevice default_bd(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue