macro_rules! imxrt_gpt2_monotonic { ($name:ident, $tick_rate_hz:expr) => { ... }; }
Expand description
Create a GPT2 based monotonic and register the GPT2 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.