Sandeep Mistry
a15d190ada
Add support for updating sketches from an SD card
...
Via 2nd stage boot code that checks SD card for UPDATE.bin
2017-02-15 15:31:18 -05:00
Sandeep Mistry
e77ae8fe8e
Optimize SPI transfers
2016-11-17 17:17:05 -05:00
Sandeep Mistry
e5166fb922
Use TX buffer for slave writes, empty on master read mode + DRDY IRQ
2016-06-17 09:55:49 -04:00
Sandeep Mistry
1634b5e0cb
Code styling for #144
2016-05-30 11:55:47 -04:00
rocketscream
bfd2a0bb28
Fix Serial.flush() blocking if called immediately after Serial.begin().
2016-05-30 11:54:18 -04:00
Sandeep Mistry
2a37de989a
Correct use of I2C slave address mask, it should be set to 0 for exact match
2016-01-19 11:38:55 -05:00
Tom Keddie
7fad702687
Change flush semantics to match AVR, fixes https://github.com/arduino/ArduinoCore-samd/issues/82
2016-01-18 11:46:45 +01:00
Cristian Maglie
f763660671
Merge branch 'wire-master-repeated-starts' of https://github.com/sandeepmistry/ArduinoCore-samd
2016-01-13 11:31:38 +01:00
Sandeep Mistry
20104a6c77
Use asynchronous fractional mode to configure UART
2016-01-05 10:57:32 -05:00
Cristian Maglie
04bda59c48
Merge branch 'Wire-slave' of https://github.com/sandeepmistry/ArduinoCore-samd
2015-11-18 19:01:26 +01:00
Sandeep Mistry
a2949d505f
Wait for idle or bus owner state in startTransmissionWIRE instead of storing repeated start state.
2015-11-18 09:19:04 -05:00
William
b993249630
Add I2C Repeated Start Capability
...
Adjust requestFrom, endTransmission, and startTransmissionWire to handle
repeated starts
2015-11-17 16:00:54 -05:00
Sandeep Mistry
2ceac4411c
Add getDataOrderSPI API to Sercom
2015-11-04 15:05:18 -05:00
Sandeep Mistry
4efe39eb49
Changes to get Wire slave receiver working
2015-09-08 17:47:30 -04:00
Erin Tomson
0bfeec7f4b
Fix two bugs that can cause deadlock conditions when i2c bus errors occur.
...
The first occurs when starting a read transaction from a slave that doesn't respond. The code would wait until the SB (slave on bus) bit is set in the INTFLAGS register, but when a nack occurs that never happens so we're stuck in an infinite loop. The fix is to also look for the MB flag to be set. If it is, issue a stop condition and return.
The second happens when a bus error (ie, an illegal stop condition) occurs while sending data as a master. In that case we are waiting for the MB (master on bus) flag to be set. When a bus error occurs that never happens, so again we end up in an infinite loop. The fix here is to also look for the BUSERR flag to be set. If it is, return an error condition.
2015-07-24 23:08:36 -07: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
Thibaut VIARD
8e2a8cbc99
Adding a test on serial port init
...
Signed-off-by: Thibaut VIARD <thibaut.viard@atmel.com>
2014-10-14 16:16:27 +02:00
Cristian Maglie
5f849abcc8
Fixed some warnings
2014-10-08 11:08:30 +02:00
Thibaut VIARD
ae42fd1167
Adding license in files, update platform.txt
2014-07-25 17:11:29 +02:00
Jonathan BAUDIN
280bc4e001
Fix SPI
2014-06-05 12:15:20 +02:00
Jonathan BAUDIN
6c67c97fad
Fix Wire bug. First bytes not read.
2014-06-02 16:23:26 +02:00
Jonathan BAUDIN
ff46a3c100
Fixing Wire
2014-05-20 17:34:26 +02:00
Jonathan BAUDIN
ead58260a3
Fix SERCOM Wire, add functions Wire class
2014-05-19 13:24:35 +02:00
Jonathan BAUDIN
8b1d9bfd27
SPI implement tested
2014-05-15 18:10:01 +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
3c6f9b55f7
Initialize clock
2014-05-09 14:07:29 +02:00
Jonathan BAUDIN
92d2f670f0
Creating objects SERCOMx, Serial, SPI and Wire.
2014-05-07 16:56:34 +02:00
Jonathan BAUDIN
ea82fe00fd
Remove division operator
2014-05-06 11:03:29 +02:00
Jonathan BAUDIN
f6e007bc9d
WIRE class finished. SERCOM class completed. Few correction in HardwareSerial and SERCOMUsart after compilation
2014-05-05 17:49:57 +02:00
Jonathan BAUDIN
8fcfc4c4dd
Adding interrupt register
2014-05-05 16:22:30 +02:00
Jonathan BAUDIN
f307bf454d
Complete SERCOM and WIRE classes
2014-05-05 14:24:10 +02:00
Jonathan BAUDIN
1014ac90c1
Add txBuffer (ring buffer) to SercomUart.
...
Add SPI functions into SERCOM class and create SPI class
2014-04-28 15:49:42 +02:00
Jonathan BAUDIN
8fe524de16
Add function for Sercom SPI
2014-04-25 11:53:15 +02:00
Jonathan BAUDIN
0f9c3326ce
Change constructor prototype (only 4 parameters)
2014-04-24 19:34:15 +02:00
Jonathan BAUDIN
53475b3e34
New defines for Serial configuration
2014-04-24 19:24:48 +02:00
Jonathan BAUDIN
f1e74b89c3
Finish SERCOMUart class, begin SERCOMSpi class. Corrections few errors on SERCOM class
2014-04-24 19:10:56 +02:00
Jonathan BAUDIN
30929c8d27
Create SERCOM and SERCOMUsart class
2014-04-24 19:10:35 +02:00