aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-05-19 20:17:32 +0000
committerGitHub <[email protected]>2022-05-19 20:17:32 +0000
commite4072d7ff3f5b11cbfdbccc0bea7de5b699430d4 (patch)
tree63187aed3b9814b52de9e7540c7267f960dc6259
parentd0fe9af4580de0424ac418fcc5eaaa241f77149d (diff)
parent4b0dca18023b53a068a4f96e5fd434c24ce33e5e (diff)
Merge #780
780: Add new lines between SIO methods r=Dirbaio a=danbev The commit adds new lines between the SIO functions which at least for me improves readability and is consistent with the other methods in the trait. Co-authored-by: Daniel Bevenius <[email protected]>
-rw-r--r--embassy-rp/src/gpio.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs
index 8f1cca27b..5fdb2b0c6 100644
--- a/embassy-rp/src/gpio.rs
+++ b/embassy-rp/src/gpio.rs
@@ -190,12 +190,15 @@ pub(crate) mod sealed {
190 }; 190 };
191 block.gpio(self.pin() as _) 191 block.gpio(self.pin() as _)
192 } 192 }
193
193 fn sio_out(&self) -> pac::sio::Gpio { 194 fn sio_out(&self) -> pac::sio::Gpio {
194 SIO.gpio_out(self.bank() as _) 195 SIO.gpio_out(self.bank() as _)
195 } 196 }
197
196 fn sio_oe(&self) -> pac::sio::Gpio { 198 fn sio_oe(&self) -> pac::sio::Gpio {
197 SIO.gpio_oe(self.bank() as _) 199 SIO.gpio_oe(self.bank() as _)
198 } 200 }
201
199 fn sio_in(&self) -> Reg<u32, RW> { 202 fn sio_in(&self) -> Reg<u32, RW> {
200 SIO.gpio_in(self.bank() as _) 203 SIO.gpio_in(self.bank() as _)
201 } 204 }