pub fn sleep_ticks(ctx: &ServiceContext, ticks: u64)Expand description
Sleep for ticks of the counter crate::driver::wait::ticks reads.
For code that already works in counter ticks - a driver that measured how long the kernel’s sleep
really lasts on this board and schedules against that measurement. Anything written in time uses
sleep_ms or sleep_us, which convert for you and know what an uncalibrated machine means;
a hand-converted tick count here is the copy those exist to replace. Zero is treated as one: a
sleep of nothing is a yield, and yield_now says so.