Function pit_clock_basic::pit_wait

source ·
pub fn pit_wait(microseconds: u32) -> Result<(), &'static str>
Expand description

Waits (blocking) for the given number of microseconds using the PIT Channel 2.

This uses a separate PIT clock channel so it doesn’t affect PIT interrupts.

Arguments

  • microseconds: the number of microseconds to wait, max value 55555.