Trait r3_port_riscv::Timer
source · pub trait Timer {
// Provided method
unsafe fn init() { ... }
}Expand description
An abstract inferface to a port timer driver. Implemented by
use_mtime! and use_sbi_timer!.
Provided Methods§
sourceunsafe fn init()
unsafe fn init()
Initialize the driver. This will be called just before entering
PortToKernel::boot.
Safety
This is only intended to be called by the port.