Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

COMPLETE_SPINS

Constant COMPLETE_SPINS 

Source
pub const COMPLETE_SPINS: u32 = 1_000_000;
Expand description

Spins of the status register to wait for the second response of a Pause.

A spin of the polled readers costs about 24 system clocks on the console, so this is about 24 million clocks (0.7 s): over six times the slowest completion measured (3.84 million out of a settled single-speed read), and still bounded so a dead drive cannot hang a loader. Even at an optimistic 5 clocks a spin it is 5 million. Reaching the bound is a failure path; the normal wait ends at INT2.