nrf/saadc: require unborrow for Input.
This allows using borrowed pins in ChannelConfig.
This commit is contained in:
parent
bc76a24eaf
commit
0d709fa5c8
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ impl<'d, const N: usize> Drop for OneShot<'d, N> {
|
|||
}
|
||||
|
||||
/// An input that can be used as either or negative end of a ADC differential in the SAADC periperhal.
|
||||
pub trait Input {
|
||||
pub trait Input: Unborrow<Target = Self> {
|
||||
fn channel(&self) -> InputChannel;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue