diff options
| author | Daniel Bevenius <[email protected]> | 2022-05-19 13:45:40 +0200 |
|---|---|---|
| committer | Daniel Bevenius <[email protected]> | 2022-05-19 13:45:40 +0200 |
| commit | 4b0dca18023b53a068a4f96e5fd434c24ce33e5e (patch) | |
| tree | 63187aed3b9814b52de9e7540c7267f960dc6259 | |
| parent | d0fe9af4580de0424ac418fcc5eaaa241f77149d (diff) | |
Add new lines between SIO methods
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.
| -rw-r--r-- | embassy-rp/src/gpio.rs | 3 |
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 | } |
