Skip to content

Commit 034de2f

Browse files
mprseadbridge
authored andcommitted
storage: fix static pin-map for ARMC5
1 parent d5f51d7 commit 034de2f

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
@@ -41,7 +41,7 @@
4141
#include "components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h"
4242

4343
#if (STATIC_PINMAP_READY)
44-
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);
44+
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);
4545
#endif
4646
#endif
4747

0 commit comments

Comments
 (0)