An RTOS-friendly Serial interface Its primary benefit is that it never hogs the CPU. An amusing alternative to the traditional ring-bufferd interrupt-serviced systems, it uses short mbed-rtos queues to buffer characters to and from the UART, and a thread to service the transmitter. Short interrupt service routines enqueue received characters and signal the transmit thread when the transmitter is available. WARNING: Do not create RTOS-Serial objects before the RTOS is running! Put them inside your main() block or another function, not in the global initialization.

Dependents:   Test_RDM880_rfid_reader

History

example needed @endcode default tip

2013-10-30, by altasoul [Wed, 30 Oct 2013 05:56:17 +0000] rev 19

example needed @endcode


Provide example of use

2013-10-30, by altasoul [Wed, 30 Oct 2013 05:53:06 +0000] rev 18

Provide example of use


for publication

2013-10-30, by altasoul [Wed, 30 Oct 2013 05:01:45 +0000] rev 17

for publication


Apache-2 license

2013-10-30, by altasoul [Wed, 30 Oct 2013 04:59:44 +0000] rev 16

Apache-2 license


First publication

2013-10-30, by altasoul [Wed, 30 Oct 2013 04:58:10 +0000] rev 15

First publication


getc(timeout) added

2013-10-24, by altasoul [Thu, 24 Oct 2013 20:31:25 +0000] rev 14

getc(timeout) added


checkpoint tried and failed to make work when pre-allocated

2013-10-24, by altasoul [Thu, 24 Oct 2013 18:25:14 +0000] rev 13

checkpoint tried and failed to make work when pre-allocated


checkpoint in bugfix of pre-allocated RTOS_Serial

2013-10-24, by altasoul [Thu, 24 Oct 2013 17:30:52 +0000] rev 12

checkpoint in bugfix of pre-allocated RTOS_Serial


get_baud(), emitter thread stack size

2013-10-24, by altasoul [Thu, 24 Oct 2013 05:34:47 +0000] rev 11

get_baud(), emitter thread stack size


Adapt to mbed-src as it exists now

2013-10-23, by altasoul [Wed, 23 Oct 2013 21:06:59 +0000] rev 10

Adapt to mbed-src as it exists now