Macro rtic_monotonics::imxrt_gpt1_monotonic

source ·
macro_rules! imxrt_gpt1_monotonic {
    ($name:ident, $tick_rate_hz:expr) => { ... };
}
Expand description

Create a GPT1 based monotonic and register the GPT1 interrupt for it.

See crate::imxrt for more details.

§Arguments

  • name - The name that the monotonic type will have.
  • tick_rate_hz - The tick rate of the timer peripheral. It’s the user’s responsibility to configure the peripheral to the given frequency before starting the monotonic.