We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fad154 + ee8632f commit 78a3d99Copy full SHA for 78a3d99
features/storage/system_storage/SystemStorage.cpp
@@ -25,6 +25,10 @@
25
#include "SPIFBlockDevice.h"
26
#endif
27
28
+#if COMPONENT_RSPIF
29
+#include "SPIFReducedBlockDevice.h"
30
+#endif
31
+
32
#if COMPONENT_QSPIF
33
#include "QSPIFBlockDevice.h"
34
@@ -92,6 +96,18 @@ MBED_WEAK BlockDevice *BlockDevice::get_default_instance()
92
96
93
97
return &default_bd;
94
98
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
95
111
#elif COMPONENT_QSPIF
112
113
static QSPIFBlockDevice default_bd(
0 commit comments