rp: add missing Debug and defmt::Format derives for ADC
this doesn't cover every `struct` & co. in `embassy-rp`, but at least it adds those needed for `Adc` and `adc::Channel`.
This commit is contained in:
@@ -21,6 +21,8 @@ static WAKER: AtomicWaker = AtomicWaker::new();
|
||||
#[derive(Default)]
|
||||
pub struct Config {}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
enum Source<'p> {
|
||||
Pin(Peri<'p, AnyPin>),
|
||||
TempSensor(Peri<'p, ADC_TEMP_SENSOR>),
|
||||
|
||||
@@ -932,6 +932,8 @@ pub trait Pin: PeripheralType + Into<AnyPin> + SealedPin + Sized + 'static {
|
||||
}
|
||||
|
||||
/// Type-erased GPIO pin
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub struct AnyPin {
|
||||
pin_bank: u8,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user