Skip to content

Commit

Permalink
Remove vestigal dualcore feature gates
Browse files Browse the repository at this point in the history
Were needed before [stm32-rs/285](stm32-rs/stm32-rs#285)
  • Loading branch information
richardeoin committed Dec 8, 2019
1 parent 373284e commit e0aec08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
//! Prelude
pub use embedded_hal::prelude::*;

#[cfg(all(feature = "device-selected", feature = "singlecore"))]
pub use crate::adc::AdcExt as _stm32h7xx_hal_adc_AdcExt;
pub use crate::delay::DelayExt as _stm32h7xx_hal_delay_DelayExt;
#[cfg(all(feature = "device-selected", feature = "singlecore"))]
pub use crate::flash::FlashExt as _stm32h7xx_hal_flash_FlashExt;
pub use crate::gpio::GpioExt as _stm32h7xx_hal_gpio_GpioExt;
pub use crate::i2c::I2cExt as _stm32h7xx_hal_i2c_I2cExt;
Expand Down
11 changes: 2 additions & 9 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,24 +672,17 @@ usart! {
USART3: (usart3, apb1l, usart3en, usart3rst, pclk1),
USART6: (usart6, apb2, usart6en, usart6rst, pclk2),

UART4: (uart4, apb1l, uart4en, uart4rst, pclk1),
UART5: (uart5, apb1l, uart5en, uart5rst, pclk1),
UART7: (uart7, apb1l, uart7en, uart7rst, pclk1),
UART8: (uart8, apb1l, uart8en, uart8rst, pclk1),
}
#[cfg(any(feature = "singlecore"))]
usart! {
UART4: (uart4, apb1l, uart4en, uart4rst, pclk1),
}

usart16sel! {
USART1, USART6,
}
usart234578sel! {
USART2, USART3, UART5, UART7, UART8,
}
#[cfg(any(feature = "singlecore"))]
usart234578sel! {
UART4,
USART2, USART3, UART4, UART5, UART7, UART8,
}

impl<USART> fmt::Write for Tx<USART>
Expand Down

0 comments on commit e0aec08

Please sign in to comment.