Skip to content

Remove stm32f301 sub-target features #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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