Skip to content

Commit

Permalink
Update src/delay.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Vadim Kaushan <admin@disasm.info>
  • Loading branch information
David-OConnor and Disasm authored Jun 12, 2021
1 parent 8133657 commit 4a393e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl Delay {
}

/// Delay using the Cortex-M systick for a certain duration, in µs.
#[allow(clippy::missing_inline_in_public_items)]
pub fn delay_us(&mut self, us: u32) {
let ticks = (u64::from(us)) * (u64::from(self.ahb_frequency)) / 1_000_000;

Expand Down

0 comments on commit 4a393e0

Please sign in to comment.