Skip to content

Commit a316902

Browse files
committed
QSPI: make _qspi object protected to allow subclassing
1 parent 0c7a86e commit a316902

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h

+2
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,11 @@ class QSPIFBlockDevice : public mbed::BlockDevice {
340340
QSPIF_BP_CLEAR_SR, // Clear protection bits in status register 1
341341
};
342342

343+
protected:
343344
// QSPI Driver Object
344345
mbed::QSPI _qspi;
345346

347+
private:
346348
// Static List of different QSPI based Flash devices csel that already exist
347349
// Each QSPI Flash device csel can have only 1 QSPIFBlockDevice instance
348350
// _devices_mutex is used to lock csel list - only one QSPIFBlockDevice instance per csel is allowed

0 commit comments

Comments
 (0)