Hello,
sometimes I have system lockups when I access external RTC modules, like described here:
http://www.paulodowd.com/2015/04/ds1307-woes-i2c-freezes-and-locks.html
The main problem is, that the standard Wire library does not have timeouts: so if an I2C access locks, a function like RTC.read() may wait forever!
The author suggests an alternate library (WSWire). But it's for Arduino AVR, while I'm using Teensy 3.2 (ARM).
Is it difficult to "port" an Arduino library?
Or, even better: maybe there's already a Teensy Wire library with timeout support?
Thank you very much!
Fernando
sometimes I have system lockups when I access external RTC modules, like described here:
http://www.paulodowd.com/2015/04/ds1307-woes-i2c-freezes-and-locks.html
The main problem is, that the standard Wire library does not have timeouts: so if an I2C access locks, a function like RTC.read() may wait forever!
The author suggests an alternate library (WSWire). But it's for Arduino AVR, while I'm using Teensy 3.2 (ARM).
Is it difficult to "port" an Arduino library?
Or, even better: maybe there's already a Teensy Wire library with timeout support?
Thank you very much!
Fernando