Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: drivers/UARTSerial.h
- Revision:
- 187:0387e8f68319
- Parent:
- 186:707f6e361f3e
--- a/drivers/UARTSerial.h Fri Jun 22 16:45:37 2018 +0100
+++ b/drivers/UARTSerial.h Thu Sep 06 13:40:20 2018 +0100
@@ -42,7 +42,7 @@
/** \addtogroup drivers */
/** Class providing buffered UART communication functionality using separate circular buffer for send and receive channels
- *
+ *
* @ingroup drivers
*/
@@ -81,7 +81,7 @@
* @param length The number of bytes to write
* @return The number of bytes written, negative error on failure
*/
- virtual ssize_t write(const void* buffer, size_t length);
+ virtual ssize_t write(const void *buffer, size_t length);
/** Read the contents of a file into a buffer
*
@@ -95,7 +95,7 @@
* @param length The number of bytes to read
* @return The number of bytes read, 0 at end of file, negative error on failure
*/
- virtual ssize_t read(void* buffer, size_t length);
+ virtual ssize_t read(void *buffer, size_t length);
/** Close a file
*
@@ -201,7 +201,7 @@
* @param parity The parity used (None, Odd, Even, Forced1, Forced0; default = None)
* @param stop_bits The number of stop bits (1 or 2; default = 1)
*/
- void set_format(int bits=8, Parity parity=UARTSerial::None, int stop_bits=1);
+ void set_format(int bits = 8, Parity parity = UARTSerial::None, int stop_bits = 1);
#if DEVICE_SERIAL_FC
// For now use the base enum - but in future we may have extra options
@@ -219,7 +219,7 @@
* @param flow1 the first flow control pin (RTS for RTS or RTSCTS, CTS for CTS)
* @param flow2 the second flow control pin (CTS for RTSCTS)
*/
- void set_flow_control(Flow type, PinName flow1=NC, PinName flow2=NC);
+ void set_flow_control(Flow type, PinName flow1 = NC, PinName flow2 = NC);
#endif
private:
