Skip to content

Commit 6fca23e

Browse files
author
Cruz Monrreal
authored
Merge pull request #7955 from yossi2le/add_frequency_to_dataflash_conig
Add SPI_FREQ parameter to DATAFLASH block device configuration
2 parents 7ca85f9 + 47aea6b commit 6fca23e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class DataFlashBlockDevice : public BlockDevice {
7474
PinName miso,
7575
PinName sclk,
7676
PinName csel,
77-
int freq = 40000000,
77+
int freq = MBED_CONF_DATAFLASH_SPI_FREQ,
7878
PinName nowp = NC);
7979

8080
/** Initialize a block device

components/storage/blockdevice/COMPONENT_DATAFLASH/mbed_lib.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"SPI_MISO": "NC",
66
"SPI_CLK": "NC",
77
"SPI_CS": "NC",
8+
"SPI_FREQ": "40000000",
89
"binary-size": {
910
"help": "Configure device to use binary address space.",
1011
"value": "0"

0 commit comments

Comments
 (0)