Skip to content

Commit dc1c497

Browse files
committed
Add pac comaptatbility
1 parent 8ab2ed0 commit dc1c497

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/delay.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use crate::hal::blocking::delay::{DelayMs, DelayUs};
88
use crate::rcc::Clocks;
99

1010
/// System timer (SysTick) as a delay provider
11-
#[derive(Debug)]
1211
pub struct Delay {
1312
clocks: Clocks,
1413
syst: SYST,

src/lib.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,25 @@ pub use embedded_hal as hal;
2424

2525
pub use stm32l4;
2626
#[cfg(feature = "stm32l4x1")]
27-
pub use stm32l4::stm32l4x1 as stm32;
27+
pub use stm32l4::stm32l4x1 as pac;
2828

2929
#[cfg(feature = "stm32l4x2")]
30-
pub use stm32l4::stm32l4x2 as stm32;
30+
pub use stm32l4::stm32l4x2 as pac;
3131

3232
#[cfg(feature = "stm32l4x3")]
33-
pub use stm32l4::stm32l4x3 as stm32;
33+
pub use stm32l4::stm32l4x3 as pac;
3434

3535
#[cfg(feature = "stm32l4x5")]
36-
pub use stm32l4::stm32l4x5 as stm32;
36+
pub use stm32l4::stm32l4x5 as pac;
3737

3838
#[cfg(feature = "stm32l4x6")]
39-
pub use stm32l4::stm32l4x6 as stm32;
39+
pub use stm32l4::stm32l4x6 as pac;
4040

4141
#[cfg(feature = "rt")]
42-
pub use self::stm32::interrupt;
42+
pub use self::pac::interrupt;
43+
44+
pub use crate::pac as device;
45+
pub use crate::pac as stm32;
4346

4447
pub mod datetime;
4548
#[cfg(any(

src/tsc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ impl ChannelPin<TSC> for PB7<Alternate<AF9, Output<PushPull>>> {
7070
const OFFSET: u32 = 3;
7171
}
7272

73-
#[derive(Debug)]
7473
pub struct Tsc<SPIN> {
7574
sample_pin: SPIN,
7675
tsc: TSC

0 commit comments

Comments
 (0)