diff --git a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h index a1a671dc33..52e2600e09 100644 --- a/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h +++ b/components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h @@ -74,7 +74,7 @@ public: PinName miso, PinName sclk, PinName csel, - int freq = 40000000, + int freq = MBED_CONF_DATAFLASH_SPI_FREQ, PinName nowp = NC); /** Initialize a block device diff --git a/components/storage/blockdevice/COMPONENT_DATAFLASH/mbed_lib.json b/components/storage/blockdevice/COMPONENT_DATAFLASH/mbed_lib.json index 862b99e7d7..3846bb7457 100644 --- a/components/storage/blockdevice/COMPONENT_DATAFLASH/mbed_lib.json +++ b/components/storage/blockdevice/COMPONENT_DATAFLASH/mbed_lib.json @@ -5,6 +5,7 @@ "SPI_MISO": "NC", "SPI_CLK": "NC", "SPI_CS": "NC", + "SPI_FREQ": "40000000", "binary-size": { "help": "Configure device to use binary address space.", "value": "0"