nrf/gpiote: expose all functionality as inherent methods.

This commit is contained in:
Dario Nieuwenhuis
2022-01-13 21:24:06 +01:00
parent 3ca01cba8d
commit c432d036c7
4 changed files with 36 additions and 59 deletions

View File

@ -350,17 +350,13 @@ pub(crate) mod sealed {
/// Set the output as high.
#[inline]
fn set_high(&self) {
unsafe {
self.block().outset.write(|w| w.bits(1u32 << self._pin()));
}
unsafe { self.block().outset.write(|w| w.bits(1u32 << self._pin())) }
}
/// Set the output as low.
#[inline]
fn set_low(&self) {
unsafe {
self.block().outclr.write(|w| w.bits(1u32 << self._pin()));
}
unsafe { self.block().outclr.write(|w| w.bits(1u32 << self._pin())) }
}
}