Skip to content

Commit 2f4a48e

Browse files
committed
Re-export gpio::ExtiPin in prelude, update examples
1 parent a64ce76 commit 2f4a48e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/analog-stopwatch-with-spi-ssd1306.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern crate panic_semihosting;
1313
extern crate stm32f4xx_hal as hal;
1414

1515
use crate::hal::{
16-
gpio::{gpioa::PA0, Edge, ExtiPin, Input, PullDown},
16+
gpio::{gpioa::PA0, Edge, Input, PullDown},
1717
interrupt, pac,
1818
prelude::*,
1919
rcc::{Clocks, Rcc},

examples/stopwatch-with-ssd1306-and-interrupts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern crate stm32f4xx_hal as hal;
2222

2323
use crate::hal::{
2424
delay::Delay,
25-
gpio::{gpioc::PC13, Edge, ExtiPin, Input, PullUp},
25+
gpio::{gpioc::PC13, Edge, Input, PullUp},
2626
i2c::I2c,
2727
interrupt,
2828
prelude::*,

src/prelude.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub use embedded_hal::prelude::*;
99
not(any(feature = "stm32f411", feature = "stm32f412", feature = "stm32f401",))
1010
))]
1111
pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;
12+
pub use crate::gpio::ExtiPin as _stm32f4xx_hal_gpio_ExtiPin;
1213
pub use crate::gpio::GpioExt as _stm32f4xx_hal_gpio_GpioExt;
1314
pub use crate::i2c::Pins as _stm32f4xx_hal_i2c_Pins;
1415
pub use crate::rcc::RccExt as _stm32f4xx_hal_rcc_RccExt;

0 commit comments

Comments
 (0)