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
Fork of BufferedSerial by
History
init commit
2015-11-04, by KillingJacky [Wed, 04 Nov 2015 10:00:40 +0000] rev 11
init commit
updates to the constructor to enable expansion of the internal ring buffers and printf() buffer sizes
2015-01-07, by ansond [Wed, 07 Jan 2015 18:37:11 +0000] rev 10
updates to the constructor to enable expansion of the internal ring buffers and printf() buffer sizes
updates to buffer ring sizes now 2x the buffer size
2015-01-04, by ansond [Sun, 04 Jan 2015 23:27:53 +0000] rev 9
updates to buffer ring sizes now 2x the buffer size
increased buffer sizes more
2015-01-04, by ansond [Sun, 04 Jan 2015 22:15:53 +0000] rev 8
increased buffer sizes more
made updates to enable the ability to expand the internal buffer. Additionally, used the definition to set the size of the ring buffers in the constructor initializer list. Increased the default buffer size to 512. Additional clean ups (param cks)
2015-01-02, by ansond [Fri, 02 Jan 2015 03:47:26 +0000] rev 7
made updates to enable the ability to expand the internal buffer. Additionally, used the definition to set the size of the ring buffers in the constructor initializer list. Increased the default buffer size to 512. Additional clean ups (param cks)
added #define to change the base Serial class to RawSerial if desired
2014-09-09, by ansond [Tue, 09 Sep 2014 20:20:38 +0000] rev 6
added #define to change the base Serial class to RawSerial if desired
Updated example in documentation. Tested with mbed.bld 81 and works with LPC1768, LPC11U24, KL25Z, KL46Z, KL05Z
2014-03-24, by sam_grove [Mon, 24 Mar 2014 19:56:57 +0000] rev 5
Updated example in documentation. Tested with mbed.bld 81 and works with LPC1768, LPC11U24, KL25Z, KL46Z, KL05Z
Disable TX IRQ when nothing is left in the buffer (FRDM support). Tested example program with KL46Z, KL25Z and LPC11U24. LPC1768 doesn't work. Need to investigate.
2013-12-30, by sam_grove [Mon, 30 Dec 2013 18:16:39 +0000] rev 4
Disable TX IRQ when nothing is left in the buffer (FRDM support). Tested example program with KL46Z, KL25Z and LPC11U24. LPC1768 doesn't work. Need to investigate.
Updates to block only tx irq when fifo needs a kick. Updated comments and documentation
2013-06-12, by sam_grove [Wed, 12 Jun 2013 20:40:15 +0000] rev 3
Updates to block only tx irq when fifo needs a kick. Updated comments and documentation
Override virtual member write. Better management of prime to avoid contentious writes under heavy traffic. updated puts to add \n per stdlib puts definition
2013-05-24, by sam_grove [Fri, 24 May 2013 22:00:26 +0000] rev 2
Override virtual member write. Better management of prime to avoid contentious writes under heavy traffic. updated puts to add \n per stdlib puts definition