Module etm

Source
Expand description

§Event Task Matrix Function

§Overview

The system timer supports the Event Task Matrix (ETM) function, which allows the system timer’s ETM events to trigger any peripherals’ ETM tasks.

The system timer can generate the following ETM events:

  • SYSTIMER_EVT_CNT_CMPx: Indicates the alarm pulses generated by COMPx

§Example

let syst = SystemTimer::new(peripherals.SYSTIMER);
let mut alarm0 = syst.alarm0.into_periodic();
alarm0.set_period(1u32.secs());

let timer_event = SysTimerEtmEvent::new(&mut alarm0);

Structs§

SysTimerEtmEvent
An ETM controlled SYSTIMER event