aboutsummaryrefslogtreecommitdiff
path: root/heterogeneous
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-07-11 13:28:25 +0200
committerJorge Aparicio <jorge@japaric.io>2019-07-11 13:28:25 +0200
commita87cb2486f488666450636c9cb68f79681f5f358 (patch)
tree69d8ce0cda38b9ff7cef307fae53fd6a275df3ef /heterogeneous
parent6a8404ac92a7d4a57188e962862c450be9b9b31a (diff)
change Monotonic::ratio return type to Fraction
Diffstat (limited to 'heterogeneous')
-rw-r--r--heterogeneous/src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/heterogeneous/src/lib.rs b/heterogeneous/src/lib.rs
index 3288bfe..95ff184 100644
--- a/heterogeneous/src/lib.rs
+++ b/heterogeneous/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() {