aboutsummaryrefslogtreecommitdiff
path: root/libraries
AgeCommit message (Collapse)Author
2020-06-11Wire: improve comments on timeoutMatthijs Kooijman
2020-06-11Wire: add sensible defaults to setWireTimeoutMartino Facchin
2020-06-11Introduce non compulsory Wire timeoutGreyson Christoforo
move timout handling into its own function change timeout from milliseconds to microseconds don't forget operating slave address or the bitrate when we reset because of a timeout Co-Authored-By: Witold Markowski <witold.a.markowski@gmail.com> fix delay datatype uint16_t --> uint32_t Update libraries/Wire/src/utility/twi.c fix mix up using TWBR instea of TWAR! Co-Authored-By: Matthijs Kooijman <matthijs@stdin.nl> Update libraries/Wire/src/utility/twi.c fix 2nd TWBR/TWAR mixup Co-Authored-By: Matthijs Kooijman <matthijs@stdin.nl> twi_stop() should use the same timeout as everywhere else all while loops are now protected by timeouts Revert "twi_stop() should use the same timeout as everywhere else" This reverts commit 68fe5f1dae1bb41183bb37eeda3fb453394a580c. make timeout counter volatile rename timeout function for improved clarity - resetting the twi interface on timeouts is now optional - timeouts in the ISR are no longer hardcoded and now obey the set timeout value - a user-readable flag is now set whenever a timeout occurs - the user can clear this flag whenever they like
2019-09-16Add i2c_scanner to example of Wire (#93)Asuki Kono
2019-09-16Merge pull request #95 from jrowberg/masterAlexander Entinger
Cast pins to signed integers to avoid Wtype-limits compile warning
2019-08-16Update twi.cCombiesGit
Added __attribute__ ((fallthrough));
2019-07-21Cast pins to signed integers to avoid Wtype-limits compile warningJeff Rowberg
2018-11-26Removed historic Arduino-0012 workaroundFlorian Schweiger
Removed #undefs in SoftwareSerial.h that were marked as Arduino 0012 workaround and that broke several macros, including abs. See https://github.com/arduino/ArduinoCore-avr/issues/30
2018-09-03Fix compiler warnings about ignored 'const' in EEPROM.hBrian Park
2018-04-12Update DigitalPotControl.inoSimonePDA
Fixing SPI communication with a delay as pointe out in #6395
2017-11-13UnConfigured I2C Slave ISR Causing Rebootchuck todd
In a MultiMaster I2C environment, The Default value of 0xFE in the TWAR cause the Arduino to respond as an I2C Slave device at address 0x7f. If the Wire.h library was not configured as a I2C Slave, `Wire.begin(slaveID);` the Callbacks for `twi_onSlaveTransmit()` and `twi_onSlaveReceive()` are never initialized. But, they are called during servicing the TWI ISR. This causes a reboot of the Arduino by jumping to an uninitialized function address (0). So, this fix initializes them to the Default Wire.h handler which will respond correctly even during Master Mode operations. A MASTER MODE only Arduino will respond to all Slave Calls that match TWAR, Unless the TWEA bit is disabled outside of Master Transactions. Chuck. It also initialized the TWAR to the General Call ID (0x0) and Disables General Call responses. Chuck.
2017-11-13[WIRE] Remove extra line from digital_potentiometer exampleQuswar Mahmood Abid
2016-08-14Update SoftwareSerialExample.inoPaul Vivier
Also includes Micros per https://www.arduino.cc/en/Reference/SoftwareSerial
2016-07-18Wrap SoftwareSerial _SS_MAX_RX_BUFF defineSandeep Mistry
To allow sketches to override value as per #58.
2016-06-05Fix buffer being overwritten by multiple twi_transmit callskellerkindt
Fixes that more complex methods (like Stream::print(float)) do not work properly. Without this fix, Wire.print(1.01f); results in '1' because Print::printFloat(double, uint8_t) performs multiple print() and therefore twi_transmit calls. Also Wire.println("Heyho"); results only in a newline character.
2016-04-05Update SoftwareSerial.cppBradley Luke Totaro
2016-04-04Merge pull request #4716 from asukiaaa/masterSandeep Mistry
Corrected comments of rx and tx in a SoftwareSerial example.
2016-03-19Corrected comments of rx and tx for SoftwareSerial example.asukiaaa
2016-03-10Make SoftwareSerial receive buffer a uint8_t arraySandeep Mistry
2016-03-10Add missing cast to SoftwareSerial::peek() when returning buffered valueSandeep Mistry
2016-03-09Fix Wire registerPaolo Paolucci
Move TWBR register from Wire.cpp to twi.c file.
2016-03-04Move AVR Wire library utility folder under sourceSandeep Mistry
2016-03-03Merge pull request #4646 from arduino/SimonePDA-patch-3Sandeep Mistry
Update library.properties
2016-03-03Merge pull request #4645 from arduino/SimonePDA-patch-2Sandeep Mistry
Update library.properties
2016-03-03Update library.propertiesSimonePDA
2016-03-03Update library.propertiesSimonePDA
2016-03-03Update library.propertiesSimonePDA
2016-03-03Update library.propertiesSimonePDA
2016-03-02add src folder when missingAlice Pintus
2016-03-02moved .h file in src folderAlice Pintus
2016-03-01update sentencesAlice Pintus
2016-02-01Fixed typoBrent Wilkins
2016-01-18Update Wire.cppBrent Wilkins
Removed implicit conversions from unsigned, to signed, back to unsigned.
2015-12-10Added HID_REPORT_TYPE definitionsNicoHood
2015-11-30Merge branch 'remove-wire-keywords' of https://github.com/per1234/ArduinoCristian Maglie
2015-11-28Remove unused keywords from Wire libraries keywords.txtper1234
These functions have been replaced by read() and write() since Arduino 1.0.
2015-11-24eeprom_clear example: Set pinMode of LED pinper1234
2015-11-11SoftwareSerial: fix flush() behaviourCristian Maglie
Fix #4029
2015-11-05Remove tx_pin_write from SoftwareSerial.hSandeep Mistry
It’s not implemented anywhere and unused.
2015-11-05Remove unused param warningSandeep Mistry
2015-11-05Add inline to recv and setRxIntMsk to remove warning (#4078)Sandeep Mistry
2015-10-30[PUSB] Fixed return value for HID_::SendReportCristian Maglie
2015-10-30[PHID] send data if report ID was sent successfulNico
If the first sending was not successful it is better to abort. Then we get a return value of -1 (instead of -2 if the 2nd call will also fail) and we do not need to block even longer, with another timeout.
2015-10-30Added return value to HID SendReportNicoHood
2015-10-22check TWWC (Write Collision Flag) bit after setting TWDRSandeep Mistry
as suggested by @earlyprogrammer in #2173, to ensure TWDR value is set if there is a write collision
2015-10-22release TWI bus right after stop or repeated start is conditionSandeep Mistry
this resolves timing issues seen in #1477
2015-10-21Merge remote-tracking branch 'arduino/master' into HEADCristian Maglie
2015-10-21[USB] use plugged modules name to create iSerial fieldMartino Facchin
2015-10-12[PHID] Fixes protocol on reenumerationNicoHood
2015-10-12[HID] renamed HIDDescriptorListNode to HIDSubDescriptorCristian Maglie