-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
- Implement
Timertrait.
awkernel/awkernel_lib/src/timer.rs
Lines 11 to 20 in 1679d1d
| pub trait Timer { | |
| /// Reset the timer interrupt. | |
| fn reset(&self, dur: Duration); | |
| /// Get IRQ#. | |
| fn irq_id(&self) -> u16; | |
| /// Disable the timer interrupt. | |
| fn disable(&self); | |
| } |
- Register the timer.
awkernel/awkernel_lib/src/timer.rs
Line 22 in 1679d1d
| pub fn register_timer(timer: Box<dyn Timer + Send + Sync>) { |
Metadata
Metadata
Assignees
Labels
No labels