Skip to content

Commit

Permalink
Remove NoPinType
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 3, 2024
1 parent 5420ce0 commit 4905018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions esp-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Removed `NoPinType` in favour of `DummyPin`. (#2???)

## [0.20.1] - 2024-08-30

### Fixed
Expand Down
5 changes: 1 addition & 4 deletions esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ pub mod lp_io;
#[cfg(all(rtc_io, not(esp32)))]
pub mod rtc_io;

/// Convenience type-alias for a no-pin / don't care - pin
pub type NoPinType = Gpio0;

/// Convenience constant for `Option::None` pin
pub const NO_PIN: Option<NoPinType> = None;
pub const NO_PIN: Option<DummyPin> = None;

static USER_INTERRUPT_HANDLER: Mutex<Cell<Option<InterruptHandler>>> = Mutex::new(Cell::new(None));

Expand Down

0 comments on commit 4905018

Please sign in to comment.