Skip to content

Commit 25f354f

Browse files
committed
storage: fix static pin-map for ARMC5
1 parent f77f4ea commit 25f354f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#include "components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h"
5252

5353
#if (STATIC_PINMAP_READY)
54-
constexpr 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);
54+
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);
5555
#endif
5656
#endif
5757

features/storage/system_storage/SystemStorage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include "components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h"
4141

4242
#if (STATIC_PINMAP_READY)
43-
constexpr 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);
43+
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);
4444
#endif
4545
#endif
4646

0 commit comments

Comments
 (0)