Skip to content

Commit 78a3d99

Browse files
authored
Merge pull request #9941 from marcuschangarm/fix-rspif
Add missing RSPIF component to the defaut BlockDevice handler
2 parents 2fad154 + ee8632f commit 78a3d99

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

features/storage/system_storage/SystemStorage.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include "SPIFBlockDevice.h"
2626
#endif
2727

28+
#if COMPONENT_RSPIF
29+
#include "SPIFReducedBlockDevice.h"
30+
#endif
31+
2832
#if COMPONENT_QSPIF
2933
#include "QSPIFBlockDevice.h"
3034
#endif
@@ -92,6 +96,18 @@ MBED_WEAK BlockDevice *BlockDevice::get_default_instance()
9296

9397
return &default_bd;
9498

99+
#elif COMPONENT_RSPIF
100+
101+
static SPIFReducedBlockDevice default_bd(
102+
MBED_CONF_RSPIF_DRIVER_SPI_MOSI,
103+
MBED_CONF_RSPIF_DRIVER_SPI_MISO,
104+
MBED_CONF_RSPIF_DRIVER_SPI_CLK,
105+
MBED_CONF_RSPIF_DRIVER_SPI_CS,
106+
MBED_CONF_RSPIF_DRIVER_SPI_FREQ
107+
);
108+
109+
return &default_bd;
110+
95111
#elif COMPONENT_QSPIF
96112

97113
static QSPIFBlockDevice default_bd(

0 commit comments

Comments
 (0)