From 25f354fe1f4fd3ffc1a478ea6a73179e92642f2d Mon Sep 17 00:00:00 2001 From: Przemyslaw Stekiel Date: Mon, 16 Dec 2019 15:38:07 +0100 Subject: [PATCH] storage: fix static pin-map for ARMC5 --- features/storage/kvstore/conf/kv_config.cpp | 2 +- features/storage/system_storage/SystemStorage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/storage/kvstore/conf/kv_config.cpp b/features/storage/kvstore/conf/kv_config.cpp index 4f68173a75..88ee611a85 100644 --- a/features/storage/kvstore/conf/kv_config.cpp +++ b/features/storage/kvstore/conf/kv_config.cpp @@ -51,7 +51,7 @@ #include "components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h" #if (STATIC_PINMAP_READY) -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); +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); #endif #endif diff --git a/features/storage/system_storage/SystemStorage.cpp b/features/storage/system_storage/SystemStorage.cpp index 8ab9a73ecd..8ef0fab0e7 100644 --- a/features/storage/system_storage/SystemStorage.cpp +++ b/features/storage/system_storage/SystemStorage.cpp @@ -40,7 +40,7 @@ #include "components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h" #if (STATIC_PINMAP_READY) -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); +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); #endif #endif