Important fix: Use bitmask everywhere now

This PAC was generated using a patched version of svd2rust with
commit hash 43be074d21132c3a76780816010df592a3603874

It includes bugfix https://github.com/rust-embedded/svd2rust/pull/549
This commit is contained in:
2021-11-09 18:11:56 +01:00
parent d37aad6b1c
commit 8c28367a33
62 changed files with 98 additions and 92 deletions

View File

@ -137,7 +137,7 @@ impl R {
#[doc = "Bit 0 - Transmit FIFO empty"]
#[inline(always)]
pub fn tfe(&self) -> TFE_R {
TFE_R::new(self.bits != 0)
TFE_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Transmit FIFO not full"]
#[inline(always)]