Skip to content

Commit f24f53a

Browse files
committed
Reformat files
1 parent ab6c9b6 commit f24f53a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/independent_watchdog.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
//! - [IWDG Example](todo-insert-link-here)
1212
//!
1313
//! Originally from stm32h7-hal, adapted for stm32g4xx-hal
14-
use fugit::ExtU32;
1514
use crate::{
1615
stm32::{iwdg::pr::PR_A, IWDG},
17-
time::{MicroSecond},
16+
time::MicroSecond,
1817
};
18+
use fugit::ExtU32;
1919

2020
/// The implementation of the hardware IWDG
2121
pub struct IndependentWatchdog {

src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use crate::rcc::{Enable, GetBusFreq, Rcc, RccBus, Reset};
1818
use crate::stm32::SPI4;
1919
use crate::stm32::{RCC, SPI1, SPI2, SPI3};
2020
use crate::time::Hertz;
21+
use core::cell::UnsafeCell;
2122
use core::ptr;
2223
pub use hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
23-
use core::cell::UnsafeCell;
2424

2525
/// SPI error
2626
#[derive(Debug)]

src/time.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// This code has been taken from the stm32g0xx-hal project and modified slightly to support
22
/// STM32G4xx MCUs.
3-
43
pub use fugit::{
54
Duration, ExtU32, HertzU32 as Hertz, HoursDurationU32 as Hour,
65
MicrosDurationU32 as MicroSecond, MinutesDurationU32 as Minute, NanosDurationU32 as NanoSecond,

0 commit comments

Comments
 (0)