@@ -48,8 +48,8 @@ typedef int (*flash_api_write_protection)(struct device *dev, bool enable);
48
48
* @brief Retrieve a flash device's layout.
49
49
*
50
50
* A flash device layout is a run-length encoded description of the
51
- * pages on the device. (Here, "pages " means the smallest erasable
52
- * areas on the flash device.)
51
+ * pages on the device. (Here, "page " means the smallest erasable
52
+ * area on the flash device.)
53
53
*
54
54
* For flash memories which have uniform page sizes, this routine
55
55
* returns an array of length 1, which specifies the page size and
@@ -191,7 +191,7 @@ struct flash_pages_info {
191
191
192
192
#if defined(CONFIG_FLASH_PAGE_LAYOUT )
193
193
/**
194
- * @brief Get size and start offset of flash page at certain flash offset.
194
+ * @brief Get the size and start offset of flash page at certain flash offset.
195
195
*
196
196
* @param dev flash device
197
197
* @param offset Offset within the page
@@ -203,7 +203,7 @@ __syscall int flash_get_page_info_by_offs(struct device *dev, off_t offset,
203
203
struct flash_pages_info * info );
204
204
205
205
/**
206
- * @brief Get size and start offset of flash page of certain index.
206
+ * @brief Get the size and start offset of flash page of certain index.
207
207
*
208
208
* @param dev flash device
209
209
* @param page_index Index of the page. Index are counted from 0.
@@ -215,7 +215,7 @@ __syscall int flash_get_page_info_by_idx(struct device *dev, u32_t page_index,
215
215
struct flash_pages_info * info );
216
216
217
217
/**
218
- * @brief Get number of flash pages.
218
+ * @brief Get the total number of flash pages.
219
219
*
220
220
* @param dev flash device
221
221
*
@@ -236,7 +236,7 @@ __syscall size_t flash_get_page_count(struct device *dev);
236
236
typedef bool (* flash_page_cb )(const struct flash_pages_info * info , void * data );
237
237
238
238
/**
239
- * @brief Iterate over flash pages on a device
239
+ * @brief Iterate over all flash pages on a device
240
240
*
241
241
* This routine iterates over all flash pages on the given device,
242
242
* ordered by increasing start offset. For each page, it invokes the
@@ -253,13 +253,13 @@ void flash_page_foreach(struct device *dev, flash_page_cb cb, void *data);
253
253
/**
254
254
* @brief Get the minimum write block size supported by the driver
255
255
*
256
- * The Write block size supported by the driver might defer from the write
256
+ * The write block size supported by the driver might differ from the write
257
257
* block size of memory used because the driver might implements write-modify
258
258
* algorithm.
259
259
*
260
260
* @param dev flash device
261
261
*
262
- * @return write block size in Bytes .
262
+ * @return write block size in bytes .
263
263
*/
264
264
__syscall size_t flash_get_write_block_size (struct device * dev );
265
265
0 commit comments