Trait r3_port_arm::Sp804Options
source · 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
sourceconst SP804_BASE: usize
const SP804_BASE: usize
The base address of SP804’s memory-mapped registers.
sourceconst INTERRUPT_NUM: InterruptNum
const INTERRUPT_NUM: InterruptNum
The timer’s interrupt number.
Provided Associated Constants
sourceconst FREQUENCY_DENOMINATOR: u64 = 1u64
const FREQUENCY_DENOMINATOR: u64 = 1u64
The denominator of the effective timer clock rate of the dual timer.
Defaults to 1
.
sourceconst HEADROOM: u32 = _
const HEADROOM: u32 = _
The maximum permissible timer interrupt latency, measured in hardware timer cycles.
Defaults to min(FREQUENCY * 60 / FREQUENCY_DENOMINATOR, 0x40000000)
.
sourceconst INTERRUPT_PRIORITY: InterruptPriority = 192i16
const INTERRUPT_PRIORITY: InterruptPriority = 192i16
The interrupt priority of the timer interrupt line.
Defaults to 0xc0
.