Skip to content

Commit 47aea6b

Browse files
Yossi LevyYossi Levy
authored andcommitted
Adding the configuration parameter as default value in the constructor.
1 parent 1eab072 commit 47aea6b

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)