Commit graph

31 commits

Author SHA1 Message Date
hathach
fc737be24e revert 6630fe7cc0 availableForWrite() return int 2019-12-31 11:44:26 +07:00
Lady Ada
6630fe7cc0 @hathach Arduino core now wants size_t returned 2019-12-10 22:41:12 -05:00
Sandeep Mistry
a62ef2633b UART frame error handling 2018-08-17 16:37:47 -04:00
Sandeep Mistry
a7c33fea4b UART: manually handle IRQ if DRE + interrupts disabled or in higher priority ISR
When write is called and TX buffer is full.
2018-01-25 11:27:16 -05:00
Sandeep Mistry
af14b97ee2 Use port manipulation instead of SERCOM h/w for UART RTS 2017-11-29 13:49:13 +01:00
Sandeep Mistry
c26a21f748 Make UART RTS + CTS configurable in constructor only 2017-11-29 13:49:13 +01:00
Sandeep Mistry
7fc402f3b5 Leverage SERCOM h/w functionality for RTS and CTS 2017-11-29 13:49:13 +01:00
Sandeep Mistry
bd1bd60815 Add optional RTS + CTS support to UART 2017-11-29 13:49:13 +01:00
Sandeep Mistry
46653a61e1 Change IRQ handler to check if data is available before check for DRE 2017-07-11 12:58:15 +02:00
Sandeep Mistry
610d4a8b8b Also check if TX buffer is empty before writing to data to UART reg directly 2017-07-11 12:58:15 +02:00
Sandeep Mistry
aa400fd434 Update flush to also wait for TX buffer to empty 2017-07-11 12:58:15 +02:00
Sandeep Mistry
b24c9e5b68 TX buffering for UART using RingBuffer 2017-07-11 12:58:12 +02:00
Cristian Maglie
647e729651 Removed wrong cast to uint8
Fix #216
2017-03-01 09:51:34 +01:00
Sandeep Mistry
76ca382f00 Add Uart::availableForWrite() 2016-06-03 09:28:09 -04:00
Tom Keddie
4bba56fdfb Fix https://github.com/arduino/ArduinoCore-samd/issues/83 by changing to 16 bits 2016-01-18 11:46:45 +01:00
Cristian Maglie
49fe43806d Uart: fix acknowledge of UART errors
This fix lock-ups on UART errors (for example when disconnecting
and reconnecting RX/TX wires or if the method Serial.begin is
called while another device is already transmitting).
2015-07-05 13:36:52 +02:00
Cristian Maglie
97f1cf6af5 Hide non-API pinPeripheral method 2015-06-15 14:16:15 +02:00
Cristian Maglie
1a1856c2fc License fix and cosmetic changes. 2015-06-14 17:16:37 +02:00
Thibaut VIARD
e951ca9bf8 Adding the ability to choose SERCOM Pads 2015-05-27 20:29:32 +02:00
Cristian Maglie
7ade600bad Removed Uart.write(const char *data) function 2014-11-28 09:56:24 +01:00
Cristian Maglie
7b14e6df20 fixed indent in Uart.h Uart.cpp 2014-11-28 09:51:42 +01:00
Thibaut VIARD
3d1a2e1cb9 Update serial objects and PWM pins
Signed-off-by: Thibaut VIARD <thibaut.viard@atmel.com>
2014-09-09 12:40:49 +02:00
Thibaut VIARD
ae42fd1167 Adding license in files, update platform.txt 2014-07-25 17:11:29 +02:00
Jonathan BAUDIN
5ad078fa2d Fixing UART (sercom0) 2014-06-12 15:27:50 +02:00
Jonathan BAUDIN
e4ab3ba3ef Few UART corrections, modifiy Variant files 2014-05-15 11:54:59 +02:00
Thibaut VIARD
770d1f85bb Fixing UART compilation 2014-05-13 00:30:04 +02:00
Jonathan BAUDIN
07e782b2b1 Fix UART EDBG and baudrate 2014-05-12 20:37:59 +02:00
Jonathan BAUDIN
86b6f1060e UART class usable 2014-05-09 19:51:30 +02:00
Jonathan BAUDIN
0eca3bd649 Use new IRQ functions 2014-05-09 14:09:41 +02:00
Jonathan BAUDIN
82074eed5e Rename Uart class 2014-05-09 09:21:10 +02:00
Jonathan BAUDIN
8cb4b3cd7e Rename Uart class files 2014-05-08 19:28:58 +02:00
Renamed from cores/arduino/SERCOMUart.cpp (Browse further)