Skip to content

Commit 647e34f

Browse files
authored
Remove NoPinType (#2068)
1 parent 9c3b171 commit 647e34f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

esp-hal/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
### Removed
2222

23+
- Removed `NoPinType` in favour of `DummyPin`. (#2068)
24+
2325
## [0.20.1] - 2024-08-30
2426

2527
### Fixed

esp-hal/src/gpio/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,8 @@ pub mod lp_io;
8787
#[cfg(all(rtc_io, not(esp32)))]
8888
pub mod rtc_io;
8989

90-
/// Convenience type-alias for a no-pin / don't care - pin
91-
pub type NoPinType = Gpio0;
92-
9390
/// Convenience constant for `Option::None` pin
94-
pub const NO_PIN: Option<NoPinType> = None;
91+
pub const NO_PIN: Option<DummyPin> = None;
9592

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

0 commit comments

Comments
 (0)