Skip to content

Commit 6954c39

Browse files
committed
Update BlockDevice.h
1 parent 51168ee commit 6954c39

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

features/storage/blockdevice/BlockDevice.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ class BlockDevice {
4949

5050
/** Return the default block device
5151
*
52-
* Returns the default BlockDevice base on configuration json.
52+
* Returns the default block device based on the configuration JSON.
5353
* Use the components in target.json or application config to change
5454
* the default block device.
5555
*
5656
* An application can override all target settings by implementing
57-
* BlockDevice::get_default_instance() themselves - the default
57+
* BlockDevice::get_default_instance() - the default
5858
* definition is weak, and calls get_target_default_instance().
5959
*/
6060
static BlockDevice *get_default_instance();
@@ -90,7 +90,7 @@ class BlockDevice {
9090
*
9191
* @param buffer Buffer to write blocks to
9292
* @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
9494
* @return 0 on success or a negative error code on failure
9595
*/
9696
virtual int read(void *buffer, bd_addr_t addr, bd_size_t size) = 0;
@@ -103,7 +103,7 @@ class BlockDevice {
103103
*
104104
* @param buffer Buffer of data to write to blocks
105105
* @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
107107
* @return 0 on success or a negative error code on failure
108108
*/
109109
virtual int program(const void *buffer, bd_addr_t addr, bd_size_t size) = 0;
@@ -114,7 +114,7 @@ class BlockDevice {
114114
* unless get_erase_value returns a non-negative byte value
115115
*
116116
* @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
118118
* @return 0 on success or a negative error code on failure
119119
*/
120120
virtual int erase(bd_addr_t addr, bd_size_t size)
@@ -130,7 +130,7 @@ class BlockDevice {
130130
* the device is not busy.
131131
*
132132
* @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
134134
* @return 0 on success or a negative error code on failure
135135
*/
136136
virtual int trim(bd_addr_t addr, bd_size_t size)
@@ -179,7 +179,7 @@ class BlockDevice {
179179
* that value can be programmed without another erase.
180180
*
181181
* @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
183183
*/
184184
virtual int get_erase_value() const
185185
{

0 commit comments

Comments
 (0)