mirror of https://github.com/ARMmbed/mbed-os.git
Refactor storage COMPONENT_xx directory
parent
83fa12183b
commit
bf58572c4d
|
@ -32,23 +32,23 @@
|
||||||
#define TRACE_GROUP "KVCFG"
|
#define TRACE_GROUP "KVCFG"
|
||||||
|
|
||||||
#if COMPONENT_FLASHIAP
|
#if COMPONENT_FLASHIAP
|
||||||
#include "storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h"
|
#include "FlashIAPBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_QSPIF
|
#if COMPONENT_QSPIF
|
||||||
#include "storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h"
|
#include "QSPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_SPIF
|
#if COMPONENT_SPIF
|
||||||
#include "storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h"
|
#include "SPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_DATAFLASH
|
#if COMPONENT_DATAFLASH
|
||||||
#include "storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h"
|
#include "DataFlashBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_SD
|
#if COMPONENT_SD
|
||||||
#include "storage/blockdevice/COMPONENT_SD/SDBlockDevice.h"
|
#include "SDBlockDevice.h"
|
||||||
|
|
||||||
#if (STATIC_PINMAP_READY)
|
#if (STATIC_PINMAP_READY)
|
||||||
const spi_pinmap_t static_spi_pinmap = get_spi_pinmap(MBED_CONF_SD_SPI_MOSI, MBED_CONF_SD_SPI_MISO, MBED_CONF_SD_SPI_CLK, NC);
|
const spi_pinmap_t static_spi_pinmap = get_spi_pinmap(MBED_CONF_SD_SPI_MOSI, MBED_CONF_SD_SPI_MISO, MBED_CONF_SD_SPI_CLK, NC);
|
||||||
|
|
|
@ -21,19 +21,19 @@
|
||||||
|
|
||||||
|
|
||||||
#if COMPONENT_SPIF
|
#if COMPONENT_SPIF
|
||||||
#include "storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.h"
|
#include "SPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_QSPIF
|
#if COMPONENT_QSPIF
|
||||||
#include "storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h"
|
#include "QSPIFBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_DATAFLASH
|
#if COMPONENT_DATAFLASH
|
||||||
#include "storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h"
|
#include "DataFlashBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_SD
|
#if COMPONENT_SD
|
||||||
#include "storage/blockdevice/COMPONENT_SD/SDBlockDevice.h"
|
#include "SDBlockDevice.h"
|
||||||
|
|
||||||
#if (STATIC_PINMAP_READY)
|
#if (STATIC_PINMAP_READY)
|
||||||
const spi_pinmap_t static_spi_pinmap = get_spi_pinmap(MBED_CONF_SD_SPI_MOSI, MBED_CONF_SD_SPI_MISO, MBED_CONF_SD_SPI_CLK, NC);
|
const spi_pinmap_t static_spi_pinmap = get_spi_pinmap(MBED_CONF_SD_SPI_MOSI, MBED_CONF_SD_SPI_MISO, MBED_CONF_SD_SPI_CLK, NC);
|
||||||
|
@ -41,7 +41,7 @@ const spi_pinmap_t static_spi_pinmap = get_spi_pinmap(MBED_CONF_SD_SPI_MOSI, MBE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPONENT_FLASHIAP
|
#if COMPONENT_FLASHIAP
|
||||||
#include "storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h"
|
#include "FlashIAPBlockDevice.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace mbed;
|
using namespace mbed;
|
||||||
|
|
Loading…
Reference in New Issue