1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-10 21:24:12 +01:00
Commit Graph

19 Commits

Author SHA1 Message Date
Cristian Maglie
d3e3b8b377 Merge branch 'sam-wire-repeated-starts' of https://github.com/sandeepmistry/Arduino 2015-10-29 21:18:11 +01:00
Sandeep Mistry
77179d78d0 Add support for repeated starts in slave mode
From the data sheet TXCOMP is only set after a stop or repeated start
and address change, but EOSACC is set for a stop or repeated start when
the address remains the same. This change removes the check for TXCOMP
when not idle, to support repeated starts for both RX and TX.
2015-10-29 16:15:52 -04:00
Sandeep Mistry
851efaefd7 Remove steps to disable pull ups as they are not needed
The Due has external pull-ups on the SDA0 and SCL0, and PIO_Configure
in Wire*_Init does not enable then.
2015-10-29 16:03:32 -04:00
Sandeep Mistry
d655bd5af9 Add end callback for deinitialization on end 2015-10-29 16:03:32 -04:00
Sandeep Mistry
2737305f54 implement Wire.end() for SAM core
also moved common reset and disable code in libsam TWI_ConfigureMaster
and TWI_ConfigureSlave functions to new TWI_Disable function, which is
used in TwoWire::end()
2015-10-29 16:03:32 -04:00
Matthew Lowe
39c3f8bf61 Support for repeated starts added to SAM Wire library
Additional interface method ported to avr for compatibility
Fix issue #2428.
2015-07-03 16:59:30 +02:00
Martino Facchin
98d0a72fdd Merge pull request #1869 from kevin-pololu/due-wire-available
SAM Wire: fixed NACK/timeout behavior of requestFrom() and available()
2015-07-01 12:43:44 +00:00
Cristian Maglie
e93be4855f Corrected some email contacts. 2015-02-05 16:47:22 +01:00
Cristian Maglie
75ec6a1b31 Due: Wire.setClock can be called at any time
See #2157
2014-07-06 00:36:22 +02:00
Kristian Lauszus
9d20959b6a Implemented setClock for the Due as well
This allows users to change the I2C clock frequency
2014-07-02 19:47:23 +02:00
Chris
e079baa18d Fix for Due Wire library
Fix reading and use of TWI status register.
Also, update endTransmission to be compatible with original & give more
useful return.
2014-05-23 12:06:43 +02:00
Kevin Chang
c92206909d SAM Wire: fixed NACK/timeout behavior of requestFrom() and available()
"readed" is no longer incremented in requestFrom() if
TWI_WaitByteReceived() gets a NACK or times out. This corrects the
behavior (return values) of requestFrom() and available() to match the
Arduino reference. Fixes arduino/Arduino#1311
2014-02-17 20:16:31 -08:00
dpslwk
8364134ada Wire library, move hard references IRQn to defines in variant.h 2014-01-17 20:44:19 +00:00
Cristian Maglie
9a9652d506 Revert "Wire library to the 1.5 format"
This reverts commit a31857688b.
2013-11-15 12:54:59 +01:00
Fede85
a31857688b Wire library to the 1.5 format 2013-09-10 18:50:42 +02:00
Cristian Maglie
9113c454f4 Fixed Wire1 initialization. Fixed keywords for Wire library 2012-06-11 13:01:27 +02:00
Cristian Maglie
3062c550b0 Updated Wire library. Latest API not yet implemented. 2012-06-03 22:07:27 +02:00
Cristian Maglie
160fa18adb Fixed platforms.txt and corrected some paths for multiplatform IDE 2012-01-13 19:09:07 +01:00
Cristian Maglie
1a92ce8fdb Moved 'sam' platform inside arduino package. 2012-01-11 13:46:51 +01:00