Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
little-arhat committed May 16, 2022
1 parent ea4745d commit c449e40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ edition = "2018"
features = ["stm32f303", "rt"]

[dependencies]
cortex-m = ">=0.7"
cortex-m = "0.7.4"
nb = "1.0.0"
bobbin-bits = "0.1.1"
bitrate = "0.1.1"

[dependencies.stm32f3]
version = "0.13"
version = "0.14.0"
package = "stm32f3"

[dependencies.hal]
features = ["unproven"]
version = "0.2.4"
version = "0.2.7"
package = "embedded-hal"

[dependencies.void]
Expand All @@ -34,7 +34,7 @@ version = "1.0.2"

[dependencies.cast]
default-features = false
version = "0.2.3"
version = "0.3.0"


[features]
Expand Down
4 changes: 2 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl MonoTimer {

/// Returns an `Instant` corresponding to "now"
pub fn now(&self) -> Instant {
Instant { now: DWT::get_cycle_count() }
Instant { now: DWT::cycle_count() }
}
}

Expand All @@ -48,6 +48,6 @@ pub struct Instant {
impl Instant {
/// Ticks elapsed since the `Instant` was created
pub fn elapsed(&self) -> u32 {
DWT::get_cycle_count().wrapping_sub(self.now)
DWT::cycle_count().wrapping_sub(self.now)
}
}

0 comments on commit c449e40

Please sign in to comment.