alan broad
/
carbon_v5_arm_studio
arm studio build
Diff: src/commI2C.cpp
- Revision:
- 8:a5316708e51d
- Parent:
- 5:abfe25f0de33
- Child:
- 9:cc23b2049639
--- a/src/commI2C.cpp Fri Aug 10 19:17:43 2018 +0000 +++ b/src/commI2C.cpp Sat Aug 11 17:34:42 2018 +0000 @@ -82,10 +82,10 @@ // - xdot does not work correctly as a i2c slave // - if xdot does not respond to first incoming bytes from master (responseTime) // within a defined period the xdot will hang the i2c bus until it is reset -// - the strategy here is sit in a very tight while loop polling continually for +// - the strategy here is sit in a very tight "while loop" polling continually for // incoming i2c bytee within the respnseTime -// - the time around the while loop below must be < responseTime -// - reponseTime for the while loop below is measured at 1.25 usec +// - time around the "while loop" must be < "responseTime" +// - "while loop" is measured at 1.25 usec // - responseTimes upto 80 usec have been measured to be OK //------------------------------------------------------------------------------ // timeout: @@ -103,7 +103,7 @@ while(1){ int i = slave.receive(); switch (i) { - case I2CSlave::ReadAddressed: //xdot -> proc + case I2CSlave::ReadAddressed: //xdot -> proc slave.write((char *)buf_xmt, BUFFER_SIZE_I2C); return I2C_WRITE; case I2CSlave::WriteAddressed: //xdot <- proc