Skip to content

Register timer for RV32 #490

Description

@ytakano
  1. Implement Timer trait.

pubtraitTimer{
/// Reset the timer interrupt.
fnreset(&self,dur:Duration);
/// Get IRQ#.
fnirq_id(&self) -> u16;
/// Disable the timer interrupt.
fndisable(&self);
}

  1. Register the timer.

pubfnregister_timer(timer:Box<dynTimer + Send + Sync>){

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions