Merge pull request #7955 from yossi2le/add_frequency_to_dataflash_conig

Add SPI_FREQ parameter to DATAFLASH block device configuration
pull/8238/head
Cruz Monrreal 2018-09-24 10:45:34 -05:00 committed by GitHub
commit 6fca23ece1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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"