Function imxrt_hal::pit::chain[][src]

pub fn chain<C1: Channel>(
    lower: PIT<<C1 as Channel>::ChainedTo>,
    upper: PIT<C1>
) -> ChainedPIT<<C1 as Channel>::ChainedTo, C1>

Chain two timers together, returning a ChainedPIT timer that can count twice as many ticks.

The API enforces that channel 1 is chained to channel 0, or channel 2 is chained to channel 1, or channel 3 is chained to channel 2. Any other combination of chaining is prevented by the compiler.

We do not support chaining more than two timers.