rp/pio: fix PioPin::set_pull, set_schmitt comment

This commit is contained in:
pennae 2023-05-02 13:46:51 +02:00
parent 3229b5e809
commit ac111f40d8

View File

@ -277,15 +277,14 @@ impl<PIO: PioInstance> PioPin<PIO> {
#[inline] #[inline]
pub fn set_pull(&mut self, pull: Pull) { pub fn set_pull(&mut self, pull: Pull) {
unsafe { unsafe {
self.pad_ctrl().modify(|w| match pull { self.pad_ctrl().modify(|w| {
Pull::Up => w.set_pue(true), w.set_pue(pull == Pull::Up);
Pull::Down => w.set_pde(true), w.set_pde(pull == Pull::Down);
Pull::None => {}
}); });
} }
} }
/// Set the pin's pull. /// Set the pin's schmitt trigger.
#[inline] #[inline]
pub fn set_schmitt(&mut self, enable: bool) { pub fn set_schmitt(&mut self, enable: bool) {
unsafe { unsafe {