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.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Functions | |
| class | MBED_DEPRECATED_SINCE ("mbed-os-6.0.0","Use printf and puts instead to access the console, BufferedSerial for blocking applications or UnbufferedSerial if bypassing locks in IRQ or short of RAM.") Serial |
Function Documentation
| class mbed::MBED_DEPRECATED_SINCE | ( | "mbed-os-6.0.0" | , |
| "Use printf and puts instead to access the | console, | ||
| BufferedSerial for blocking applications or UnbufferedSerial if bypassing locks in IRQ or short of RAM." | |||
| ) |
Can be used for Full Duplex communication, or Simplex by specifying one pin as NC (Not Connected)
- Note:
- Synchronization level: Thread safe
Example:
// Print "Hello World" to the PC #include "mbed.h" Serial pc(USBTX, USBRX); int main() { pc.printf("Hello World\n"); }
Resolve ambiguities in SerialBase and FileHandle (for enable_input and enable_output)
- Parameters:
-
tx Transmit pin rx Receive pin name The name of the stream associated with this serial port (optional) baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE or 9600)
- Note:
- Either tx or rx may be specified as NC (Not Connected) if unused
- Parameters:
-
static_pinmap reference to structure which holds static pinmap. name The name of the stream associated with this serial port (optional) baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE or 9600)
- Note:
- Either tx or rx may be specified as NC (Not Connected) if unused
- Parameters:
-
tx Transmit pin rx Receive pin baud The baud rate of the serial port
- Note:
- Either tx or rx may be specified as NC (Not Connected) if unused
- Parameters:
-
static_pinmap reference to structure which holds static pinmap. baud The baud rate of the serial port
- Note:
- Either tx or rx may be specified as NC (Not Connected) if unused
Generated on Tue Jul 12 2022 13:55:20 by
1.7.2