Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: firmware: guard I2C transactions with timeouts.
If we don't add timeouts on I2C transactions, then the USB request that caused it (for reads) or the next USB control request (for writes) will silently hang forever until the device is power cycled. This is clearly undesirable. However, this does not happen at all during normal operation, and although it hardens the device, the FX2 firmware size comes at a premium, and blindly spraying these guard conditions adds a nontrivial increase. Therefore this code, although tested, is not currently used.
- Loading branch information