aboutsummaryrefslogtreecommitdiff
path: root/homogeneous/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--homogeneous/src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/homogeneous/src/lib.rs b/homogeneous/src/lib.rs
index 3288bfe0..95ff184d 100644
--- a/homogeneous/src/lib.rs
+++ b/homogeneous/src/lib.rs
@@ -8,7 +8,7 @@ use core::{
};
use bare_metal::Nr;
-use rtfm::{Monotonic, MultiCore};
+use rtfm::{Fraction, Monotonic, MultiCore};
// both cores have the exact same interrupts
pub use Interrupt_0 as Interrupt_1;
@@ -24,8 +24,11 @@ pub struct MT;
impl Monotonic for MT {
type Instant = Instant;
- fn ratio() -> u32 {
- 1
+ fn ratio() -> Fraction {
+ Fraction {
+ numerator: 1,
+ denominator: 1,
+ }
}
unsafe fn reset() {