Skip to content

Commit

Permalink
Merge pull request #115 from ra-kete/fix-stm32f301-feature
Browse files Browse the repository at this point in the history
Remove stm32f301 sub-target features
  • Loading branch information
teskje committed Jul 18, 2020
2 parents b0aaa37 + 67b0373 commit 59f2221
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ device-selected = []
direct-call-deprecated = []
rt = ["stm32f3/rt"]
# Any Changes here should be mirrored in README.md and src/lib.rs
stm32f301 = ["stm32f3/stm32f301", "direct-call-deprecated"]
stm32f301xb = ["stm32f301", "device-selected"]
stm32f301xc = ["stm32f301", "device-selected"]
stm32f301xd = ["stm32f301", "device-selected"]
stm32f301xe = ["stm32f301", "device-selected"]
stm32f301 = ["stm32f3/stm32f301", "device-selected"]
stm32f318 = ["stm32f3/stm32f3x8", "device-selected"]
stm32f302 = ["stm32f3/stm32f302", "direct-call-deprecated"]
stm32f302xb = ["stm32f302", "device-selected"]
Expand Down
10 changes: 2 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
Please select one of the following
(Note: `x` denotes any character in [a-z])
* stm32f301xb
* stm32f301xc
* stm32f301xd
* stm32f301xe
* stm32f301
* stm32f318
* stm32f302xb
* stm32f302xc
Expand Down Expand Up @@ -43,10 +40,7 @@ compile_error!(
Please select one of the following
(Note: `x` denotes any character in [a-z])
* stm32f301xb
* stm32f301xc
* stm32f301xd
* stm32f301xe
* stm32f301
* stm32f318
* stm32f302xb
* stm32f302xc
Expand Down
4 changes: 2 additions & 2 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use crate::{
time::Bps,
};
use core::{convert::Infallible, marker::PhantomData, ptr};
use cortex_m::interrupt;
use nb;

#[cfg(any(
feature = "stm32f302",
Expand Down Expand Up @@ -41,6 +39,8 @@ use crate::gpio::gpioe;

#[cfg(feature = "stm32f303")]
use crate::dma;
#[cfg(feature = "stm32f303")]
use cortex_m::interrupt;

/// Interrupt event
pub enum Event {
Expand Down
1 change: 0 additions & 1 deletion src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use core::ptr;
use crate::hal::spi::FullDuplex;
pub use crate::hal::spi::{Mode, Phase, Polarity};
use crate::pac::{SPI1, SPI2, SPI3};
use nb;

use crate::gpio::gpioa::{PA5, PA6, PA7};
#[cfg(any(
Expand Down
1 change: 0 additions & 1 deletion src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ use crate::pac::{TIM15, TIM16, TIM17, TIM2, TIM6};
use crate::pac::{TIM3, TIM7};

use cast::{u16, u32};
use nb;
use void::Void;

use crate::rcc::{Clocks, APB1, APB2};
Expand Down

0 comments on commit 59f2221

Please sign in to comment.