Skip to content

Commit 908233a

Browse files
author
Offir Kochalsky
committed
Changes per Pull Request review 3
1 parent 23bc67d commit 908233a

File tree

2 files changed

+6
-89
lines changed

2 files changed

+6
-89
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ class QSPIFBlockDevice : public BlockDevice {
103103
*
104104
*/
105105
QSPIFBlockDevice(PinName io0, PinName io1, PinName io2, PinName io3, PinName sclk, PinName csel,
106-
int clock_mode, int freq = 40000000);
107-
106+
int clock_mode, int freq = MBED_CONF_QSPIF_QSPI_FREQ);
108107

109108
/** Initialize a block device
110109
*
@@ -238,9 +237,10 @@ class QSPIFBlockDevice : public BlockDevice {
238237

239238
// Send set_frequency command to Driver
240239
qspi_status_t _qspi_set_frequency(int freq);
241-
/********************************/
242-
243240

241+
/*********************************/
242+
/* Flash Configuration Functions */
243+
/*********************************/
244244
// Soft Reset Flash Memory
245245
int _reset_flash_mem();
246246

@@ -253,6 +253,7 @@ class QSPIFBlockDevice : public BlockDevice {
253253
// Enable Fast Mode - for flash chips with low power default
254254
int _enable_fast_mdoe();
255255

256+
/****************************************/
256257
/* SFDP Detection and Parsing Functions */
257258
/****************************************/
258259
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
@@ -283,6 +284,7 @@ class QSPIFBlockDevice : public BlockDevice {
283284
unsigned int& erase4k_inst,
284285
unsigned int *erase_type_inst_arr, unsigned int *erase_type_size_arr);
285286

287+
/***********************/
286288
/* Utilities Functions */
287289
/***********************/
288290
// Find the region to which the given offset belong to

components/storage/blockdevice/COMPONENT_QSPIF/README.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)