xous-core/services/bao-video
bunnie a421b7abfa replace watchdog hack with an atomicbool; reset cam on setup
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.
2026-05-29 00:08:02 +08:00
..
src replace watchdog hack with an atomicbool; reset cam on setup 2026-05-29 00:08:02 +08:00
Cargo.toml replace watchdog hack with an atomicbool; reset cam on setup 2026-05-29 00:08:02 +08:00