Serial Communication Example Code

baud

http://mbed.org/users/simon/code/baud/file/2c059aa102cb/main.cpp

Example of setting stdout baudrate

Serial2Serial

http://mbed.org/users/simon/code/Serial2Serial/file/3c9dd1f868aa/main.cpp

Simple example of a serial port communicating with another serial port

SerialBuffer

http://mbed.org/users/simon/code/SerialBuffer/file/dc609501b657/main.cpp

Simple example of reading a single character and a series of characters in to a buffer from a serial port

iSerial

http://mbed.org/users/ykuroda/code/iSerial/

iSerial class library can easy be used just by swapping Serial declarations.

BufferedSerial

https://mbed.org/users/sam_grove/code/BufferedSerial/

Inherit from Serial and use software buffers for TX and RX. This allows the UART peripherals to operate in a IRQ driven mode. Overrides most (but not all) stdio functions as Serial did

MODSERIAL

https://mbed.org/cookbook/MODSERIAL

https://mbed.org/users/Sissors/code/MODSERIAL/

MODSERIAL is an easy to use library that extends Serial to add fully buffered input and output.

Serial Interrupts

http://mbed.org/cookbook/Serial-Interrupts

This is a simple demo project showing how to setup an interrupt driven serial port with buffering using the existing mbed Serial support without talking directly with UART hardware.


Please log in to post comments.