update error handling

This commit is contained in:
2025-02-10 16:57:40 +01:00
committed by Robin Mueller
parent 6efc902e02
commit 67ddba9c42
7 changed files with 77 additions and 289 deletions

View File

@ -22,8 +22,9 @@
//!
//! - [Blinky example](https://egit.irs.uni-stuttgart.de/rust/va108xx-rs/src/branch/main/examples/simple/examples/blinky.rs)
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, thiserror::Error)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[error("The pin is masked")]
pub struct IsMaskedError;
pub mod dynpin;