Skip to content

Commit 7b5d48d

Browse files
Merge pull request #5571 from kjbracey-arm/retarget_fh
Complete mbed_retarget FileHandle rework
2 parents 40d1c02 + f79bfdd commit 7b5d48d

File tree

5 files changed

+596
-235
lines changed

5 files changed

+596
-235
lines changed

platform/FileHandle.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,4 @@ off_t FileHandle::size()
3333
return size;
3434
}
3535

36-
std::FILE *fdopen(FileHandle *fh, const char *mode)
37-
{
38-
return mbed_fdopen(fh, mode);
39-
}
40-
4136
} // namespace mbed

platform/FileHandle.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,6 @@ class FileHandle : private NonCopyable<FileHandle> {
252252
}
253253
};
254254

255-
/** Not a member function
256-
* This call is equivalent to posix fdopen().
257-
* It associates a Stream to an already opened file descriptor (FileHandle)
258-
*
259-
* @param fh a pointer to an opened file descriptor
260-
* @param mode operation upon the file descriptor, e.g., 'wb+'
261-
*
262-
* @returns a pointer to std::FILE
263-
*/
264-
265-
std::FILE *fdopen(FileHandle *fh, const char *mode);
266-
267255
/**@}*/
268256

269257
/**@}*/

platform/mbed_lib.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
"name": "platform",
33
"config": {
44
"stdio-convert-newlines": {
5-
"help": "Enable conversion to standard newlines on stdin/stdout",
5+
"help": "Enable conversion to standard newlines on stdin/stdout/stderr",
6+
"value": false
7+
},
8+
9+
"stdio-convert-tty-newlines": {
10+
"help": "Enable conversion to standard newlines on any tty FILE stream",
11+
"value": false
12+
},
13+
14+
"stdio-buffered-serial": {
15+
"help": "Use UARTSerial driver to obtain buffered serial I/O on stdin/stdout/stderr. If false, unbuffered serial_getc and serial_putc are used directly.",
616
"value": false
717
},
818

0 commit comments

Comments
 (0)