Prevent creating GpioPin (#2688)

This commit is contained in:
Dániel Buga 2024-12-06 07:20:49 +01:00 committed by GitHub
parent b4379b8518
commit 2d4ccd735f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Xtensa devices now correctly enable the `esp-hal-procmacros/rtc-slow` feature (#2594)
- User-bound GPIO interrupt handlers should no longer interfere with async pins. (#2625)
- `spi::master::Spi::{into_async, into_blocking}` are now correctly available on the typed driver, to. (#2674)
- It is no longer possible to safely conjure `GpioPin` instances (#2688)
### Removed

View File

@ -757,6 +757,7 @@ impl Bank1GpioRegisterAccess {
}
/// GPIO pin
#[non_exhaustive]
pub struct GpioPin<const GPIONUM: u8>;
/// Type-erased GPIO pin