Wire library and blocking read/writes
hello, there way preform non blocking read/writes on twi? spend long time staring @ twi.c, hoping stick some:
if (a long time has passed) {
return -1 or equally absurd;
}
flavoured statements somewhere drew blank.
i 'm guessing code expecting respond interrupts somewhere. 'm amazed google doesn't seem find in response (am missing something?), seems me having arduino hang if cable i2c device gets unplugged can rather serious problem lot of applications.
if (a long time has passed) {
return -1 or equally absurd;
}
flavoured statements somewhere drew blank.
i 'm guessing code expecting respond interrupts somewhere. 'm amazed google doesn't seem find in response (am missing something?), seems me having arduino hang if cable i2c device gets unplugged can rather serious problem lot of applications.
as far can tell arduino twi functions non-blocking. because built application used external i2c eeprom chip , if unplugged eeprom application continued run, returning ones read requests.
lefty
lefty
Arduino Forum > Forum 2005-2010 (read only) > Software > Development > Wire library and blocking read/writes
arduino
Comments
Post a Comment