Skip to content

Commit 593dcb8

Browse files
authored
Merge pull request #444 from bjoernQ/feature/spi-half-duplex
Half-duplex SPI
2 parents 1ab40d4 + ba75b15 commit 593dcb8

22 files changed

+3159
-81
lines changed

esp-hal-common/src/gpio.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ use crate::peripherals::{GPIO, IO_MUX};
1414
pub use crate::soc::gpio::*;
1515
pub(crate) use crate::{analog, gpio};
1616

17+
/// Convenience type-alias for a no-pin / don't care - pin
18+
pub type NoPinType = Gpio0<Unknown>;
19+
20+
/// Convenience constant for `Option::None` pin
21+
pub const NO_PIN: Option<NoPinType> = None;
22+
1723
#[derive(Copy, Clone)]
1824
pub enum Event {
1925
RisingEdge = 1,

0 commit comments

Comments
 (0)