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

@ -571,10 +571,13 @@ impl SpiClkConfig {
}
}
#[derive(Debug)]
#[derive(Debug, thiserror::Error)]
pub enum SpiClkConfigError {
#[error("division by zero")]
DivIsZero,
#[error("divide value is not even")]
DivideValueNotEven,
#[error("scrdv value is too large")]
ScrdvValueTooLarge,
}