mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
This patch replaces the watchdog thread with a spin-wait on an atomicbool that is set by the IRQ handler once an IRQ triggers. This is a much cleaner, lower-overhead way to handle the time out. This patch also puts the camera setup into a retry loop, and by default on setup it does a hardware reset of the display subsystem (this includes the OLED screen). This hopefully gives the subsystem a much better chance of recovering from the camera being in a scrambled state. The working theory for why the camera might get scrambled is that it assumes it is a sole I2C device, and when its init sequence is interrupted by other devices handling requests it does not handle this situation gracefully. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||