File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
components/storage/blockdevice/COMPONENT_QSPIF Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -514,6 +514,11 @@ bd_size_t QSPIFBlockDevice::size() const
514
514
return _device_size_bytes;
515
515
}
516
516
517
+ int QSPIFBlockDevice::get_erase_value () const
518
+ {
519
+ return 0xFF ;
520
+ }
521
+
517
522
/* *******************************/
518
523
/* Different Device Csel Mgmt */
519
524
/* *******************************/
Original file line number Diff line number Diff line change @@ -191,6 +191,17 @@ class QSPIFBlockDevice : public BlockDevice {
191
191
*/
192
192
virtual bd_size_t get_erase_size (bd_addr_t addr);
193
193
194
+ /* * Get the value of storage byte after it was erased
195
+ *
196
+ * If get_erase_value returns a non-negative byte value, the underlying
197
+ * storage is set to that value when erased, and storage containing
198
+ * that value can be programmed without another erase.
199
+ *
200
+ * @return The value of storage when erased, or -1 if you can't
201
+ * rely on the value of erased storage
202
+ */
203
+ virtual int get_erase_value () const ;
204
+
194
205
/* * Get the total size of the underlying device
195
206
*
196
207
* @return Size of the underlying device in bytes
You can’t perform that action at this time.
0 commit comments