@@ -49,12 +49,12 @@ class BlockDevice {
49
49
50
50
/* * Return the default block device
51
51
*
52
- * Returns the default BlockDevice base on configuration json .
52
+ * Returns the default block device based on the configuration JSON .
53
53
* Use the components in target.json or application config to change
54
54
* the default block device.
55
55
*
56
56
* An application can override all target settings by implementing
57
- * BlockDevice::get_default_instance() themselves - the default
57
+ * BlockDevice::get_default_instance() - the default
58
58
* definition is weak, and calls get_target_default_instance().
59
59
*/
60
60
static BlockDevice *get_default_instance ();
@@ -90,7 +90,7 @@ class BlockDevice {
90
90
*
91
91
* @param buffer Buffer to write blocks to
92
92
* @param addr Address of block to begin reading from
93
- * @param size Size to read in bytes, must be a multiple of read block size
93
+ * @param size Size to read in bytes, must be a multiple of the read block size
94
94
* @return 0 on success or a negative error code on failure
95
95
*/
96
96
virtual int read (void *buffer, bd_addr_t addr, bd_size_t size) = 0;
@@ -103,7 +103,7 @@ class BlockDevice {
103
103
*
104
104
* @param buffer Buffer of data to write to blocks
105
105
* @param addr Address of block to begin writing to
106
- * @param size Size to write in bytes, must be a multiple of program block size
106
+ * @param size Size to write in bytes, must be a multiple of the program block size
107
107
* @return 0 on success or a negative error code on failure
108
108
*/
109
109
virtual int program (const void *buffer, bd_addr_t addr, bd_size_t size) = 0;
@@ -114,7 +114,7 @@ class BlockDevice {
114
114
* unless get_erase_value returns a non-negative byte value
115
115
*
116
116
* @param addr Address of block to begin erasing
117
- * @param size Size to erase in bytes, must be a multiple of erase block size
117
+ * @param size Size to erase in bytes, must be a multiple of the erase block size
118
118
* @return 0 on success or a negative error code on failure
119
119
*/
120
120
virtual int erase (bd_addr_t addr, bd_size_t size)
@@ -130,7 +130,7 @@ class BlockDevice {
130
130
* the device is not busy.
131
131
*
132
132
* @param addr Address of block to mark as unused
133
- * @param size Size to mark as unused in bytes, must be a multiple of erase block size
133
+ * @param size Size to mark as unused in bytes, must be a multiple of the erase block size
134
134
* @return 0 on success or a negative error code on failure
135
135
*/
136
136
virtual int trim (bd_addr_t addr, bd_size_t size)
@@ -179,7 +179,7 @@ class BlockDevice {
179
179
* that value can be programmed without another erase.
180
180
*
181
181
* @return The value of storage when erased, or -1 if you can't
182
- * rely on the value of erased storage
182
+ * rely on the value of the erased storage
183
183
*/
184
184
virtual int get_erase_value () const
185
185
{
0 commit comments