Adding the configuration parameter as default value in the constructor.

pull/7955/head
Yossi Levy 2018-09-02 17:28:54 +03:00
parent 1eab0723ba
commit 47aea6b719
2 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public:
PinName miso, PinName miso,
PinName sclk, PinName sclk,
PinName csel, PinName csel,
int freq = 40000000, int freq = MBED_CONF_DATAFLASH_SPI_FREQ,
PinName nowp = NC); PinName nowp = NC);
/** Initialize a block device /** Initialize a block device

View File

@ -5,6 +5,7 @@
"SPI_MISO": "NC", "SPI_MISO": "NC",
"SPI_CLK": "NC", "SPI_CLK": "NC",
"SPI_CS": "NC", "SPI_CS": "NC",
"SPI_FREQ": "40000000",
"binary-size": { "binary-size": {
"help": "Configure device to use binary address space.", "help": "Configure device to use binary address space.",
"value": "0" "value": "0"