logo
pub trait OsTimerOptions {
    const OSTM_BASE: usize;
    const STBCR_OSTM: Option<(usize, u8)>;
    const FREQUENCY: u64;
    const FREQUENCY_DENOMINATOR: u64;
    const HEADROOM: u32;
    const INTERRUPT_OSTM_PRIORITY: InterruptPriority;
    const INTERRUPT_OSTM: InterruptNum;
}
Expand description

The options for use_os_timer!.

Associated Constants

The base address of OS Timer’s memory-mapped registers.

The standby control register’s memory address and bit position used to enable the clock supply to OS Timer.

Defaults to Some((0xfcfe0428, 1)) (STBCR5.MSTP51).

The numerator of the timer clock rate of the timer.

The denominator of the timer clock rate of the timer. Defaults to 1.

The maximum permissible timer interrupt latency, measured in hardware timer cycles.

Defaults to min(FREQUENCY * 60 / FREQUENCY_DENOMINATOR, 0x40000000).

The interrupt priority of the timer interrupt line. Defaults to 0xc0.

OS Timer’s interrupt number.

Implementors