Skip to content

Commit d835d76

Browse files
committed
spi
1 parent 2e44b16 commit d835d76

File tree

3 files changed

+156
-267
lines changed

3 files changed

+156
-267
lines changed

src/rcc/enable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ macro_rules! bus_reset {
9999
macro_rules! bus {
100100
($($PER:ident => ($busX:ty, $($en:ident)?, $($smen:ident)?, $($rst:ident)?),)+) => {
101101
$(
102-
impl crate::Sealed for crate::stm32::$PER {}
103102
impl RccBus for crate::stm32::$PER {
104103
type Bus = $busX;
105104
}

src/serial/usart.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::gpio::{
88
use crate::rcc::{self, *};
99
use crate::serial;
1010
use crate::serial::config::*;
11-
use crate::{gpio, prelude::*};
11+
use crate::{gpio, pac, prelude::*};
1212

1313
use nb::block;
1414

@@ -72,6 +72,9 @@ impl Event {
7272
}
7373
}
7474

75+
impl crate::Sealed for pac::USART1 {}
76+
impl crate::Sealed for pac::USART2 {}
77+
7578
pub trait Instance: crate::Sealed + rcc::Enable + rcc::Reset + CommonPins + Rs485 {
7679
type RegisterBlock;
7780

0 commit comments

Comments
 (0)