Skip to content

Commit f42412a

Browse files
added 600MHz frequency
1 parent 6f4bb8c commit f42412a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

kernel/src/hil/time.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,15 @@ pub trait Timer<'a>: Time {
401401
// they can never be constructed, it forces them to be used purely as
402402
// type-markers which are guaranteed to be elided at runtime.
403403

404+
/// 600MHz `Frequency`
405+
#[derive(Debug)]
406+
pub enum Freq600MHz {}
407+
impl Frequency for Freq600MHz {
408+
fn frequency() -> u32 {
409+
600_000_000
410+
}
411+
}
412+
404413
/// 100MHz `Frequency`
405414
#[derive(Debug)]
406415
pub enum Freq100MHz {}

0 commit comments

Comments
 (0)