Run with updated version of rustfmt

This commit is contained in:
Kjetil Kjeka
2017-09-23 20:31:10 +02:00
parent 7facea48b2
commit 2fc3ce22de
1658 changed files with 25191 additions and 42351 deletions

View File

@ -2,20 +2,13 @@ use vcell::VolatileCell;
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
#[doc = "0x00 - Port Data Output Register"]
pub pdor: PDOR,
#[doc = "0x04 - Port Set Output Register"]
pub psor: PSOR,
#[doc = "0x08 - Port Clear Output Register"]
pub pcor: PCOR,
#[doc = "0x0c - Port Toggle Output Register"]
pub ptor: PTOR,
#[doc = "0x10 - Port Data Input Register"]
pub pdir: PDIR,
#[doc = "0x14 - Port Data Direction Register"]
pub pddr: PDDR,
#[doc = "0x18 - Port Input Disable Register"]
pub pidr: PIDR,
#[doc = "0x00 - Port Data Output Register"] pub pdor: PDOR,
#[doc = "0x04 - Port Set Output Register"] pub psor: PSOR,
#[doc = "0x08 - Port Clear Output Register"] pub pcor: PCOR,
#[doc = "0x0c - Port Toggle Output Register"] pub ptor: PTOR,
#[doc = "0x10 - Port Data Input Register"] pub pdir: PDIR,
#[doc = "0x14 - Port Data Direction Register"] pub pddr: PDDR,
#[doc = "0x18 - Port Input Disable Register"] pub pidr: PIDR,
}
#[doc = "Port Data Output Register"]
pub struct PDOR {

View File

@ -22,7 +22,9 @@ impl super::PDDR {
#[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]

View File

@ -6,7 +6,9 @@ impl super::PDIR {
#[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" Value of the field"]

View File

@ -22,7 +22,9 @@ impl super::PDOR {
#[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]

View File

@ -22,7 +22,9 @@ impl super::PIDR {
#[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]