Skip to content

Commit f05e498

Browse files
author
Deepika Bhavnani
committed
Resolving doxygen warnings
1 parent 072a227 commit f05e498

File tree

4 files changed

+43
-19
lines changed

4 files changed

+43
-19
lines changed

platform/FileHandle.h

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ class FileHandle {
170170
* Definition depends upon the subclass implementing FileHandle.
171171
* The default is blocking.
172172
*
173-
* @param blocking true for blocking mode, false for non-blocking mode.
173+
* @param blocking true for blocking mode, false for non-blocking mode.
174+
*
175+
* @return 0 on success
176+
* @return Negative error code on failure
174177
*/
175178
virtual int set_blocking(bool blocking)
176179
{
@@ -183,31 +186,32 @@ class FileHandle {
183186
* Call is non-blocking - returns instantaneous state of events.
184187
* Whenever an event occurs, the derived class should call the sigio() callback).
185188
*
186-
* @param events bitmask of poll events we're interested in - POLLIN/POLLOUT etc.
189+
* @param events bitmask of poll events we're interested in - POLLIN/POLLOUT etc.
187190
*
188-
* @returns
189-
* bitmask of poll events that have occurred.
191+
* @returns bitmask of poll events that have occurred.
190192
*/
191193
virtual short poll(short events) const
192194
{
193195
// Possible default for real files
194196
return POLLIN | POLLOUT;
195197
}
196198

197-
/** Returns true if the FileHandle is writable.
198-
* Definition depends upon the subclass implementing FileHandle.
199+
/** Definition depends upon the subclass implementing FileHandle.
199200
* For example, if the FileHandle is of type Stream, writable() could return
200201
* true when there is ample buffer space available for write() calls.
202+
*
203+
* @returns true if the FileHandle is writable.
201204
*/
202205
bool writable() const
203206
{
204207
return poll(POLLOUT) & POLLOUT;
205208
}
206209

207-
/** Returns true if the FileHandle is readable.
208-
* Definition depends upon the subclass implementing FileHandle.
210+
/** Definition depends upon the subclass implementing FileHandle.
209211
* For example, if the FileHandle is of type Stream, readable() could return
210212
* true when there is something available to read.
213+
*
214+
* @returns true when there is something available to read.
211215
*/
212216
bool readable() const
213217
{
@@ -239,11 +243,13 @@ class FileHandle {
239243

240244
/** Not a member function
241245
* This call is equivalent to posix fdopen().
242-
* Returns a pointer to std::FILE.
243246
* It associates a Stream to an already opened file descriptor (FileHandle)
244247
*
245-
* @param fh a pointer to an opened file descriptor
246-
* @param mode operation upon the file descriptor, e.g., 'wb+'*/
248+
* @param fh a pointer to an opened file descriptor
249+
* @param mode operation upon the file descriptor, e.g., 'wb+'
250+
*
251+
* @returns a pointer to std::FILE
252+
*/
247253

248254
std::FILE *fdopen(FileHandle *fh, const char *mode);
249255

platform/mbed_error.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
#ifndef MBED_ERROR_H
2020
#define MBED_ERROR_H
2121

22+
23+
2224
/** To generate a fatal compile-time error, you can use the pre-processor #error directive.
25+
*
26+
* @param format C string that contains data stream to be printed.
27+
* Code snippets below show valid format.
2328
*
2429
* @code
2530
* #error "That shouldn't have happened!"
@@ -54,12 +59,13 @@
5459
* error("expected x to be less than 5, but got %d", x);
5560
* }
5661
* @endcode
62+
*
63+
*
5764
*/
5865

5966
#ifdef __cplusplus
6067
extern "C" {
6168
#endif
62-
6369
void error(const char* format, ...);
6470

6571
#ifdef __cplusplus

platform/mbed_interface.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,28 @@ void mbed_mac_address(char *mac);
113113
void mbed_die(void);
114114

115115
/** Print out an error message. This is typically called when
116-
* hanlding a crash.
116+
* handling a crash.
117117
*
118118
* @note Synchronization level: Interrupt safe
119+
*
120+
* @param format C string that contains data stream to be printed.
121+
* Code snippets below show valid format.
122+
*
123+
* @code
124+
* mbed_error_printf("Failed: %s, file: %s, line %d \n", expr, file, line);
125+
* @endcode
126+
*
119127
*/
120128
void mbed_error_printf(const char* format, ...);
121129

122130
/** Print out an error message. Similar to mbed_error_printf
123131
* but uses a va_list.
124132
*
125133
* @note Synchronization level: Interrupt safe
134+
*
135+
* @param format C string that contains data stream to be printed.
136+
* @param arg Variable arguments list
137+
*
126138
*/
127139
void mbed_error_vfprintf(const char * format, va_list arg);
128140

platform/mbed_mem_trace.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ void mbed_mem_trace_free(void *ptr, void *caller);
110110
* easily parsable by an external tool. For each memory operation, the callback
111111
* outputs a line that begins with "#<op>:<0xresult>;<0xcaller>-":
112112
*
113-
* - 'op' identifies the memory operation ('m' for 'malloc', 'r' for 'realloc',
114-
* 'c' for 'calloc' and 'f' for 'free').
115-
* - 'result' (base 16) is the result of the memor operation. This is always NULL
116-
* for 'free', since 'free' doesn't return anything.
117-
* - 'caller' (base 16) is the caller of the memory operation. Note that the value
118-
* of 'caller' might be unreliable.
113+
* @param op identifies the memory operation ('m' for 'malloc', 'r' for 'realloc',
114+
* 'c' for 'calloc' and 'f' for 'free').
115+
* @param res (base 16) is the result of the memor operation. This is always NULL
116+
* for 'free', since 'free' doesn't return anything.
117+
* @param caller (base 16) is the caller of the memory operation. Note that the value
118+
* of 'caller' might be unreliable.
119119
*
120120
* The rest of the output depends on the operation being traced:
121121
*

0 commit comments

Comments
 (0)