File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,11 @@ bd_size_t SPIFBlockDevice::get_erase_size() const
329
329
return SPIF_SE_SIZE;
330
330
}
331
331
332
+ bd_size_t SPIFBlockDevice::get_erase_size (bd_addr_t addr) const
333
+ {
334
+ return SPIF_SE_SIZE;
335
+ }
336
+
332
337
bd_size_t SPIFBlockDevice::size () const
333
338
{
334
339
return _size;
Original file line number Diff line number Diff line change @@ -130,6 +130,14 @@ class SPIFBlockDevice : public BlockDevice {
130
130
*/
131
131
virtual bd_size_t get_erase_size () const ;
132
132
133
+ /* * Get the size of an erasable block given address
134
+ *
135
+ * @param addr Address within the erasable block
136
+ * @return Size of an erasable block in bytes
137
+ * @note Must be a multiple of the program size
138
+ */
139
+ virtual bd_size_t get_erase_size (bd_addr_t addr) const ;
140
+
133
141
/* * Get the value of storage when erased
134
142
*
135
143
* If get_erase_value returns a non-negative byte value, the underlying
You can’t perform that action at this time.
0 commit comments