Trait r3_support_rza1::OsTimerOptions
source · [−]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 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).
const FREQUENCY_DENOMINATOR: u64
const FREQUENCY_DENOMINATOR: u64
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)
.
const INTERRUPT_OSTM_PRIORITY: InterruptPriority
const INTERRUPT_OSTM_PRIORITY: InterruptPriority
The interrupt priority of the timer interrupt line.
Defaults to 0xc0
.
const INTERRUPT_OSTM: InterruptNum
const INTERRUPT_OSTM: InterruptNum
OS Timer’s interrupt number.