Skip to content

Commit 270f7cd

Browse files
committed
Add qspi subclassing patch
1 parent 838d644 commit 270f7cd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From a316902eaa2b438e71a40f0992fc8094058eaa63 Mon Sep 17 00:00:00 2001
2+
From: Martino Facchin <[email protected]>
3+
Date: Fri, 23 Sep 2022 09:51:20 +0200
4+
Subject: [PATCH] QSPI: make _qspi object protected to allow subclassing
5+
6+
---
7+
.../COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h | 2 ++
8+
1 file changed, 2 insertions(+)
9+
10+
diff --git a/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h b/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h
11+
index 2903ecad32..695a396197 100644
12+
--- a/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h
13+
+++ b/storage/blockdevice/COMPONENT_QSPIF/include/QSPIF/QSPIFBlockDevice.h
14+
@@ -340,9 +340,11 @@ private:
15+
QSPIF_BP_CLEAR_SR, // Clear protection bits in status register 1
16+
};
17+
18+
+protected:
19+
// QSPI Driver Object
20+
mbed::QSPI _qspi;
21+
22+
+private:
23+
// Static List of different QSPI based Flash devices csel that already exist
24+
// Each QSPI Flash device csel can have only 1 QSPIFBlockDevice instance
25+
// _devices_mutex is used to lock csel list - only one QSPIFBlockDevice instance per csel is allowed
26+
--
27+
2.37.3
28+

0 commit comments

Comments
 (0)