Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gateware/i2c: add timeout on touch ic initialization (#60)
// Mitigation for `issues/59`: if CS2 of touch sense IC is shorted to ground // (jack 2 is connected) during a cold powerup, it will just NACK all transactions. // So, instead of halting initialization completely, we time out on touch IC // initialization. This has the effect that if jack 2 is connected on a cold powerup, // the touch sensing will not work until jack 2 is re-plugged, but everything // else (CODEC/LED/Jackdet) will come up fine. Touch sensing will be instantly // restored after re-plugging jack 2, no power cycle or reset is required as the last // config written to the touch IC is fine as long as the eurorack-pmod has been // used at least once (EEPROM in touch IC written). // // All of this is only relevant when the +3V3 supply goes down (cold power up). Usually // if you're just re-flashing the FPGA (common use case), you won't hit this.
- Loading branch information