Skip to content

Commit 73ac904

Browse files
Yossi LevyYossi Levy
authored andcommitted
Doxygen changes to ProfilingBlockDevice and SlicingBlockDevice.
1 parent 7dde677 commit 73ac904

File tree

2 files changed

+6
-40
lines changed

2 files changed

+6
-40
lines changed

features/storage/blockdevice/ProfilingBlockDevice.h

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,6 @@ namespace mbed {
3232

3333

3434
/** Block device for measuring storage operations of another block device
35-
*
36-
* @code
37-
* #include "mbed.h"
38-
* #include "HeapBlockDevice.h"
39-
* #include "ProfilingBlockDevice.h"
40-
*
41-
* // Create a heap block device and profiling block device
42-
* HeapBlockDevice mem(64*512, 512);
43-
* ProfilingBlockDevice profiler(&mem);
44-
*
45-
* // do block device work....
46-
*
47-
* printf("read count: %lld\n", profiler.get_read_count());
48-
* printf("program count: %lld\n", profiler.get_program_count());
49-
* printf("erase count: %lld\n", profiler.get_erase_count());
50-
* @endcode
5135
*/
5236
class ProfilingBlockDevice : public BlockDevice {
5337
public:
@@ -86,7 +70,7 @@ class ProfilingBlockDevice : public BlockDevice {
8670
* @param buffer Buffer to read blocks into
8771
* @param addr Address of block to begin reading from
8872
* @param size Size to read in bytes, must be a multiple of read block size
89-
* @return 0 on success, negative error code on failure
73+
* @return 0 on success or a negative error code on failure
9074
*/
9175
virtual int read(void *buffer, bd_addr_t addr, bd_size_t size);
9276

@@ -97,7 +81,7 @@ class ProfilingBlockDevice : public BlockDevice {
9781
* @param buffer Buffer of data to write to blocks
9882
* @param addr Address of block to begin writing to
9983
* @param size Size to write in bytes, must be a multiple of program block size
100-
* @return 0 on success, negative error code on failure
84+
* @return 0 on success or a negative error code on failure
10185
*/
10286
virtual int program(const void *buffer, bd_addr_t addr, bd_size_t size);
10387

@@ -108,7 +92,7 @@ class ProfilingBlockDevice : public BlockDevice {
10892
*
10993
* @param addr Address of block to begin erasing
11094
* @param size Size to erase in bytes, must be a multiple of erase block size
111-
* @return 0 on success, negative error code on failure
95+
* @return 0 on success or a negative error code on failure
11296
*/
11397
virtual int erase(bd_addr_t addr, bd_size_t size);
11498

features/storage/blockdevice/SlicingBlockDevice.h

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,6 @@
3232
namespace mbed {
3333

3434
/** Block device for mapping to a slice of another block device
35-
*
36-
* @code
37-
* #include "mbed.h"
38-
* #include "HeapBlockDevice.h"
39-
* #include "SlicingBlockDevice.h"
40-
*
41-
* // Create a block device with 64 blocks of size 512
42-
* HeapBlockDevice mem(64*512, 512);
43-
*
44-
* // Create a block device that maps to the first 32 blocks
45-
* SlicingBlockDevice slice1(&mem, 0*512, 32*512);
46-
*
47-
* // Create a block device that maps to the last 32 blocks
48-
* SlicingBlockDevice slice2(&mem, 32*512);
49-
*
50-
* // Create a block device that maps to the middle 32 blocks
51-
* SlicingBlockDevice slice3(&mem, 16*512, -16*512);
52-
* @endcode
5335
*/
5436
class SlicingBlockDevice : public BlockDevice {
5537
public:
@@ -92,7 +74,7 @@ class SlicingBlockDevice : public BlockDevice {
9274
* @param buffer Buffer to read blocks into
9375
* @param addr Address of block to begin reading from
9476
* @param size Size to read in bytes, must be a multiple of read block size
95-
* @return 0 on success, negative error code on failure
77+
* @return 0 on success or a negative error code on failure
9678
*/
9779
virtual int read(void *buffer, bd_addr_t addr, bd_size_t size);
9880

@@ -103,7 +85,7 @@ class SlicingBlockDevice : public BlockDevice {
10385
* @param buffer Buffer of data to write to blocks
10486
* @param addr Address of block to begin writing to
10587
* @param size Size to write in bytes, must be a multiple of program block size
106-
* @return 0 on success, negative error code on failure
88+
* @return 0 on success or a negative error code on failure
10789
*/
10890
virtual int program(const void *buffer, bd_addr_t addr, bd_size_t size);
10991

@@ -114,7 +96,7 @@ class SlicingBlockDevice : public BlockDevice {
11496
*
11597
* @param addr Address of block to begin erasing
11698
* @param size Size to erase in bytes, must be a multiple of erase block size
117-
* @return 0 on success, negative error code on failure
99+
* @return 0 on success or a negative error code on failure
118100
*/
119101
virtual int erase(bd_addr_t addr, bd_size_t size);
120102

0 commit comments

Comments
 (0)