Skip to content

Commit 1a4c11e

Browse files
author
offirko
committed
Fixed Bus Mode bit mask to select best mode.
When setting Quad Enable, either SR1, SR2 or CR setup is required. Either way register size is up to 2 bytes.
1 parent ce5194f commit 1a4c11e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr)
854854
case 1:
855855
case 4:
856856
status_reg_setup[1] = 0x02; //Bit 1 of Status Reg 2
857-
sr_write_size = 2;
857+
sr_write_size = 2;
858858
tr_debug("Setting QE Bit, Bit 1 of Status Reg 2");
859859
break;
860860

@@ -875,7 +875,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr)
875875
status_reg_setup[1] = 0x2; // Bit 1 of status Reg 2
876876
_read_register_inst = 0x35;
877877
sr_read_size = 1;
878-
sr_write_size = 2;
878+
sr_write_size = 2;
879879
tr_debug("Setting QE Bit, Bit 1 of Status Reg 2 -special read command");
880880
break;
881881
default:

0 commit comments

Comments
 (0)