@@ -103,8 +103,7 @@ class QSPIFBlockDevice : public BlockDevice {
103
103
*
104
104
*/
105
105
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);
108
107
109
108
/* * Initialize a block device
110
109
*
@@ -238,9 +237,10 @@ class QSPIFBlockDevice : public BlockDevice {
238
237
239
238
// Send set_frequency command to Driver
240
239
qspi_status_t _qspi_set_frequency (int freq);
241
- /* *******************************/
242
-
243
240
241
+ /* ********************************/
242
+ /* Flash Configuration Functions */
243
+ /* ********************************/
244
244
// Soft Reset Flash Memory
245
245
int _reset_flash_mem ();
246
246
@@ -253,6 +253,7 @@ class QSPIFBlockDevice : public BlockDevice {
253
253
// Enable Fast Mode - for flash chips with low power default
254
254
int _enable_fast_mdoe ();
255
255
256
+ /* ***************************************/
256
257
/* SFDP Detection and Parsing Functions */
257
258
/* ***************************************/
258
259
// Parse SFDP Headers and retrieve Basic Param and Sector Map Tables (if exist)
@@ -283,6 +284,7 @@ class QSPIFBlockDevice : public BlockDevice {
283
284
unsigned int & erase4k_inst,
284
285
unsigned int *erase_type_inst_arr, unsigned int *erase_type_size_arr);
285
286
287
+ /* **********************/
286
288
/* Utilities Functions */
287
289
/* **********************/
288
290
// Find the region to which the given offset belong to
0 commit comments