8 years, 5 months ago.

Using RTOS and Serial Ports on LPC4088

What is the library got have multiple (at least 2) Serial ports on the LPC4088 in conjunction with mbed RTOS ?

Am I right in thinking that the standard mbed Serial library uses stdio routines which are not compatible with mbed RTOS ?

I have also found the bufferedSerial library (https://developer.mbed.org/users/sam_grove/code/BufferedSerial/) and the MODSERIAL library (https://developer.mbed.org/cookbook/MODSERIAL)

I have also seen references to RawSerial but have not found this library yet!

Any words of wisdom gratefully received

1 Answer

8 years, 5 months ago.

RawSerial is included in the mbed lib, just use "RawSerial" instead of "Serial" and it should work (unless you use the less basic stdio functions, since only basic ones are included in RawSerial).

If you want to use interrupts for your Serial, you will indeed need to use RawSerial or BufferedSerial (since that one iirc also uses RawSerial). The standard MODSERIAL also uses stdio, so won't help you.

Accepted Answer