mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
change Monotonic::ratio return type to Fraction
This commit is contained in:
parent
6a8404ac92
commit
a87cb2486f
5 changed files with 41 additions and 17 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue