Fixed examples and added defmt format to the new error types
This commit is contained in:
committed by
Dario Nieuwenhuis
parent
4950682a50
commit
e6ec81b999
@ -25,6 +25,7 @@ pub use pac::uarte0::{baudrate::BAUDRATE_A as Baudrate, config::PARITY_A as Pari
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub enum Error {
|
||||
PpiError(ppi::Error),
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ use embassy_hal_common::{unborrow, unsafe_impl_unborrow};
|
||||
/// Error type of the PPI driver
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub enum Error {
|
||||
/// There is no capacity to enable this task or event (nRF51 & nRF52 only)
|
||||
NoCapacityLeft,
|
||||
|
@ -27,6 +27,7 @@ pub use pac::uarte0::{baudrate::BAUDRATE_A as Baudrate, config::PARITY_A as Pari
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub enum Error {
|
||||
PpiError(crate::ppi::Error),
|
||||
}
|
||||
|
Reference in New Issue
Block a user