Skip to content

Commit 87a743d

Browse files
committed
cleanup code
1 parent 7ce9a62 commit 87a743d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/watchdog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ extern crate panic_halt;
99
extern crate stm32c0xx_hal as hal;
1010

1111
use hal::prelude::*;
12+
use hal::rcc::Config;
1213
use hal::stm32;
1314
use rt::entry;
14-
use hal::rcc::Config;
1515

1616
#[allow(clippy::empty_loop)]
1717
#[entry]

src/crc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Config {
121121

122122
crc.init.write(|w| unsafe { w.crc_init().bits(init) });
123123
crc.pol.write(|w| unsafe { w.bits(poly) });
124-
crc.cr.write(|w| unsafe {
124+
crc.cr.write(|w| unsafe {
125125
w.rev_in()
126126
.bits(in_rev_bits)
127127
.polysize()

src/prelude.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
pub use hal::adc::OneShot as _;
2-
pub use hal::digital::v2::*;
3-
pub use hal::prelude::*;
4-
pub use hal::watchdog::Watchdog as _;
5-
pub use hal::watchdog::WatchdogEnable as _;
61
pub use crate::analog::adc::AdcExt as _;
72
pub use crate::crc::CrcExt as _;
83
pub use crate::exti::ExtiExt as _;
@@ -26,3 +21,8 @@ pub use crate::timer::TimerExt as _;
2621
pub use crate::watchdog::IWDGExt as _;
2722
pub use crate::watchdog::WWDGExt as _;
2823
pub use fugit::{ExtU32 as _, RateExtU32 as _};
24+
pub use hal::adc::OneShot as _;
25+
pub use hal::digital::v2::*;
26+
pub use hal::prelude::*;
27+
pub use hal::watchdog::Watchdog as _;
28+
pub use hal::watchdog::WatchdogEnable as _;

0 commit comments

Comments
 (0)