mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
Cargo format
This commit is contained in:
parent
2f7bba4668
commit
89017d338f
@ -690,18 +690,14 @@ pub(crate) trait SealedPin {
|
||||
{
|
||||
let crlh = if n < 8 { 0 } else { 1 };
|
||||
match r.cr(crlh).read().mode(n % 8) {
|
||||
vals::Mode::INPUT => {
|
||||
match r.cr(crlh).read().cnf_in(n % 8) {
|
||||
vals::CnfIn::PULL => {
|
||||
match r.odr().read().odr(n % 8) {
|
||||
vals::Odr::LOW => Pull::Down,
|
||||
vals::Odr::HIGH => Pull::Up
|
||||
}
|
||||
},
|
||||
_ => Pull::None
|
||||
}
|
||||
vals::Mode::INPUT => match r.cr(crlh).read().cnf_in(n % 8) {
|
||||
vals::CnfIn::PULL => match r.odr().read().odr(n % 8) {
|
||||
vals::Odr::LOW => Pull::Down,
|
||||
vals::Odr::HIGH => Pull::Up,
|
||||
},
|
||||
_ => Pull::None,
|
||||
},
|
||||
_ => Pull::None
|
||||
_ => Pull::None,
|
||||
}
|
||||
}
|
||||
#[cfg(gpio_v2)]
|
||||
|
Loading…
Reference in New Issue
Block a user