Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing RSPIF component to the defaut BlockDevice handler #9941

Merged
merged 1 commit into from Mar 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions features/storage/system_storage/SystemStorage.cpp
Expand Up @@ -25,6 +25,10 @@
#include "SPIFBlockDevice.h"
#endif

#if COMPONENT_RSPIF
#include "SPIFReducedBlockDevice.h"
#endif

#if COMPONENT_QSPIF
#include "QSPIFBlockDevice.h"
#endif
Expand Down Expand Up @@ -92,6 +96,18 @@ MBED_WEAK BlockDevice *BlockDevice::get_default_instance()

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

static QSPIFBlockDevice default_bd(
Expand Down