Trait r3_port_arm_m::SysTickOptions
source · pub trait SysTickOptions {
const FREQUENCY: u64;
const FREQUENCY_DENOMINATOR: u64 = 1u64;
const INTERRUPT_PRIORITY: InterruptPriority = 192i16;
const TICK_PERIOD: u32 = _;
}
Expand description
The configuration for the implementation of PortTimer
based on SysTick
(tickful).
Required Associated Constants
Provided Associated Constants
sourceconst FREQUENCY_DENOMINATOR: u64 = 1u64
const FREQUENCY_DENOMINATOR: u64 = 1u64
The denominator of the input clock frequency of SysTick.
Defaults to 1
.
sourceconst INTERRUPT_PRIORITY: InterruptPriority = 192i16
const INTERRUPT_PRIORITY: InterruptPriority = 192i16
The interrupt priority of the SysTick interrupt line.
Defaults to 0xc0
.
sourceconst TICK_PERIOD: u32 = _
const TICK_PERIOD: u32 = _
The period of ticks, measured in SysTick cycles. Must be in range
0..=0x1000000
.
Defaults to
(FREQUENCY / FREQUENCY_DENOMINATOR / 100).max(1).min(0x1000000)
(100Hz).