Run with updated version of rustfmt
This commit is contained in:
@ -22,7 +22,9 @@ impl super::PCC_LPUART1 {
|
||||
#[doc = r" Reads the contents of the register"]
|
||||
#[inline]
|
||||
pub fn read(&self) -> R {
|
||||
R { bits: self.register.get() }
|
||||
R {
|
||||
bits: self.register.get(),
|
||||
}
|
||||
}
|
||||
#[doc = r" Writes to the register"]
|
||||
#[inline]
|
||||
@ -43,22 +45,14 @@ impl super::PCC_LPUART1 {
|
||||
#[doc = "Possible values of the field `PCS`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum PCSR {
|
||||
#[doc = "Clock is off."]
|
||||
_000,
|
||||
#[doc = "Clock option 1"]
|
||||
_001,
|
||||
#[doc = "Clock option 2"]
|
||||
_010,
|
||||
#[doc = "Clock option 3"]
|
||||
_011,
|
||||
#[doc = "Clock option 4"]
|
||||
_100,
|
||||
#[doc = "Clock option 5"]
|
||||
_101,
|
||||
#[doc = "Clock option 6"]
|
||||
_110,
|
||||
#[doc = "Clock option 7"]
|
||||
_111,
|
||||
#[doc = "Clock is off."] _000,
|
||||
#[doc = "Clock option 1"] _001,
|
||||
#[doc = "Clock option 2"] _010,
|
||||
#[doc = "Clock option 3"] _011,
|
||||
#[doc = "Clock option 4"] _100,
|
||||
#[doc = "Clock option 5"] _101,
|
||||
#[doc = "Clock option 6"] _110,
|
||||
#[doc = "Clock option 7"] _111,
|
||||
}
|
||||
impl PCSR {
|
||||
#[doc = r" Value of the field as raw bits"]
|
||||
@ -135,10 +129,8 @@ impl PCSR {
|
||||
#[doc = "Possible values of the field `CGC`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum CGCR {
|
||||
#[doc = "Clock disabled"]
|
||||
_0,
|
||||
#[doc = "Clock enabled. The current clock selection and divider options are locked."]
|
||||
_1,
|
||||
#[doc = "Clock disabled"] _0,
|
||||
#[doc = "Clock enabled. The current clock selection and divider options are locked."] _1,
|
||||
}
|
||||
impl CGCR {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -182,10 +174,8 @@ impl CGCR {
|
||||
#[doc = "Possible values of the field `PR`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum PRR {
|
||||
#[doc = "Peripheral is not present."]
|
||||
_0,
|
||||
#[doc = "Peripheral is present."]
|
||||
_1,
|
||||
#[doc = "Peripheral is not present."] _0,
|
||||
#[doc = "Peripheral is present."] _1,
|
||||
}
|
||||
impl PRR {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -228,22 +218,14 @@ impl PRR {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `PCS`"]
|
||||
pub enum PCSW {
|
||||
#[doc = "Clock is off."]
|
||||
_000,
|
||||
#[doc = "Clock option 1"]
|
||||
_001,
|
||||
#[doc = "Clock option 2"]
|
||||
_010,
|
||||
#[doc = "Clock option 3"]
|
||||
_011,
|
||||
#[doc = "Clock option 4"]
|
||||
_100,
|
||||
#[doc = "Clock option 5"]
|
||||
_101,
|
||||
#[doc = "Clock option 6"]
|
||||
_110,
|
||||
#[doc = "Clock option 7"]
|
||||
_111,
|
||||
#[doc = "Clock is off."] _000,
|
||||
#[doc = "Clock option 1"] _001,
|
||||
#[doc = "Clock option 2"] _010,
|
||||
#[doc = "Clock option 3"] _011,
|
||||
#[doc = "Clock option 4"] _100,
|
||||
#[doc = "Clock option 5"] _101,
|
||||
#[doc = "Clock option 6"] _110,
|
||||
#[doc = "Clock option 7"] _111,
|
||||
}
|
||||
impl PCSW {
|
||||
#[allow(missing_docs)]
|
||||
@ -326,10 +308,8 @@ impl<'a> _PCSW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `CGC`"]
|
||||
pub enum CGCW {
|
||||
#[doc = "Clock disabled"]
|
||||
_0,
|
||||
#[doc = "Clock enabled. The current clock selection and divider options are locked."]
|
||||
_1,
|
||||
#[doc = "Clock disabled"] _0,
|
||||
#[doc = "Clock enabled. The current clock selection and divider options are locked."] _1,
|
||||
}
|
||||
impl CGCW {
|
||||
#[allow(missing_docs)]
|
||||
|
Reference in New Issue
Block a user