pub trait Sp804Options {
    const SP804_BASE: usize;
    const FREQUENCY: u64;
    const INTERRUPT_NUM: InterruptNum;
    const FREQUENCY_DENOMINATOR: u64 = 1u64;
    const HEADROOM: u32 = _;
    const INTERRUPT_PRIORITY: InterruptPriority = 192i16;
}
Expand description

The options for use_sp804!.

Required Associated Constants

The base address of SP804’s memory-mapped registers.

The numerator of the effective timer clock rate of the dual timer.

The timer’s interrupt number.

Provided Associated Constants

The denominator of the effective timer clock rate of the dual 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.

Implementors