correction of the access to flex pin attribute in gpio_v2
This commit is contained in:
parent
94c13eb2af
commit
fa3e1ab68a
@ -90,7 +90,7 @@ impl<'d, T: Pin> Flex<'d, T> {
|
|||||||
{
|
{
|
||||||
r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING));
|
r.pupdr().modify(|w| w.set_pupdr(n, vals::Pupdr::FLOATING));
|
||||||
r.otyper().modify(|w| w.set_ot(n, vals::Ot::PUSHPULL));
|
r.otyper().modify(|w| w.set_ot(n, vals::Ot::PUSHPULL));
|
||||||
pin.set_speed(speed);
|
self.pin.set_speed(speed);
|
||||||
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -125,7 +125,7 @@ impl<'d, T: Pin> Flex<'d, T> {
|
|||||||
{
|
{
|
||||||
r.pupdr().modify(|w| w.set_pupdr(n, pull.into()));
|
r.pupdr().modify(|w| w.set_pupdr(n, pull.into()));
|
||||||
r.otyper().modify(|w| w.set_ot(n, vals::Ot::OPENDRAIN));
|
r.otyper().modify(|w| w.set_ot(n, vals::Ot::OPENDRAIN));
|
||||||
pin.set_speed(speed);
|
self.pin.set_speed(speed);
|
||||||
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
r.moder().modify(|w| w.set_moder(n, vals::Moder::OUTPUT));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user