Skip to content

Commit 52332f9

Browse files
author
Kyle Kearney
committed
QSPIFBlockDevice: Fix incomplete propagation of qspi_inst_t
1 parent fa6e01a commit 52332f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_erase_command(qspi_inst_t erase_inst,
13751375

13761376
qspi_status_t QSPIFBlockDevice::_qspi_send_general_command(qspi_inst_t instruction, bd_addr_t addr,
13771377
const char *tx_buffer,
1378-
size_t tx_length, const char *rx_buffer, size_t rx_length)
1378+
mbed::bd_size_t tx_length, const char *rx_buffer, mbed::bd_size_t rx_length)
13791379
{
13801380
// Send a general command Instruction to driver
13811381
qspi_status_t status = _qspi.command_transfer(instruction, (int)addr, tx_buffer, tx_length, rx_buffer, rx_length);

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
286286

287287
// Detect fastest read Bus mode supported by device
288288
int _sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table_ptr, int basic_param_table_size, bool &set_quad_enable,
289-
bool &is_qpi_mode, unsigned int &read_inst);
289+
bool &is_qpi_mode, mbed::qspi_inst_t &read_inst);
290290

291291
// Enable Quad mode if supported (1-1-4, 1-4-4, 4-4-4 bus modes)
292292
int _sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr);
@@ -299,8 +299,8 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
299299

300300
// Detect all supported erase types
301301
int _sfdp_detect_erase_types_inst_and_size(uint8_t *basic_param_table_ptr, int basic_param_table_size,
302-
unsigned int &erase4k_inst,
303-
unsigned int *erase_type_inst_arr, unsigned int *erase_type_size_arr);
302+
mbed::qspi_inst_t &erase4k_inst,
303+
mbed::qspi_inst_t *erase_type_inst_arr, unsigned int *erase_type_size_arr);
304304

305305
/***********************/
306306
/* Utilities Functions */

0 commit comments

Comments
 (0)