aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/src/utility/twi.c
AgeCommit message (Collapse)Author
2021-05-26Correct typos in comments and documentationper1234
2021-01-09fix twi_manageTimeoutFlag function descriptionGreyson Christoforo
2020-06-11Wire: apply last suggested comment from @matthijskooijmanMartino Facchin
2020-06-11Wire: improve comments on timeoutMatthijs Kooijman
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-08-16Update twi.cCombiesGit
Added __attribute__ ((fallthrough));
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-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