From 67af1bb9b5d14fbccdef76fc7813b435463c56a7 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 14 Feb 2025 15:43:38 +0100 Subject: [PATCH] PAC update --- .github/workflows/ci.yml | 2 ++ va108xx/CHANGELOG.md | 4 ++++ va108xx/Cargo.toml | 5 +++++ va108xx/README.md | 6 ++++++ va108xx/gen-helper.sh | 2 +- va108xx/src/i2ca/address.rs | 1 + va108xx/src/i2ca/clktolimit.rs | 1 + va108xx/src/i2ca/cmd.rs | 1 + va108xx/src/i2ca/data.rs | 1 + va108xx/src/i2ca/perid.rs | 1 + va108xx/src/i2ca/rxcount.rs | 1 + va108xx/src/i2ca/rxfifoirqtrg.rs | 1 + va108xx/src/i2ca/s0_address.rs | 1 + va108xx/src/i2ca/s0_addressb.rs | 1 + va108xx/src/i2ca/s0_addressmask.rs | 1 + va108xx/src/i2ca/s0_addressmaskb.rs | 1 + va108xx/src/i2ca/s0_data.rs | 1 + va108xx/src/i2ca/s0_lastaddress.rs | 1 + va108xx/src/i2ca/s0_maxwords.rs | 1 + va108xx/src/i2ca/s0_rxcount.rs | 1 + va108xx/src/i2ca/s0_rxfifoirqtrg.rs | 1 + va108xx/src/i2ca/s0_state.rs | 1 + va108xx/src/i2ca/s0_txcount.rs | 1 + va108xx/src/i2ca/s0_txfifoirqtrg.rs | 1 + va108xx/src/i2ca/state.rs | 1 + va108xx/src/i2ca/tmconfig.rs | 1 + va108xx/src/i2ca/txcount.rs | 1 + va108xx/src/i2ca/txfifoirqtrg.rs | 1 + va108xx/src/i2ca/words.rs | 1 + va108xx/src/ioconfig/perid.rs | 1 + va108xx/src/ioconfig/porta.rs | 1 + va108xx/src/irqsel/int_ram_sbe.rs | 1 + va108xx/src/irqsel/perid.rs | 1 + va108xx/src/lib.rs | 1 + va108xx/src/porta/datain.rs | 1 + va108xx/src/porta/datainbyte.rs | 1 + va108xx/src/porta/datamask.rs | 1 + va108xx/src/porta/datamaskbyte.rs | 1 + va108xx/src/porta/dataout.rs | 1 + va108xx/src/porta/dataoutbyte.rs | 1 + va108xx/src/porta/edge_status.rs | 1 + va108xx/src/porta/irq_edge.rs | 1 + va108xx/src/porta/irq_enb.rs | 1 + va108xx/src/porta/irq_end.rs | 1 + va108xx/src/porta/irq_evt.rs | 1 + va108xx/src/porta/irq_raw.rs | 1 + va108xx/src/porta/irq_sen.rs | 1 + va108xx/src/porta/perid.rs | 1 + va108xx/src/spia/clkprescale.rs | 1 + va108xx/src/spia/data.rs | 1 + va108xx/src/spia/perid.rs | 1 + va108xx/src/spia/rxfifoirqtrg.rs | 1 + va108xx/src/spia/state.rs | 1 + va108xx/src/spia/txfifoirqtrg.rs | 1 + va108xx/src/sysconfig/ef_config.rs | 1 + va108xx/src/sysconfig/ef_id.rs | 1 + va108xx/src/sysconfig/ioconfig_clkdiv.rs | 1 + va108xx/src/sysconfig/ioconfig_clkdiv0.rs | 1 + va108xx/src/sysconfig/perid.rs | 1 + va108xx/src/sysconfig/procid.rs | 1 + va108xx/src/sysconfig/ram_sbe.rs | 1 + va108xx/src/sysconfig/refresh_config.rs | 1 + va108xx/src/sysconfig/rom_retries.rs | 1 + va108xx/src/sysconfig/tim_clk_enable.rs | 1 + va108xx/src/sysconfig/tim_reset.rs | 1 + va108xx/src/tim0/cnt_value.rs | 1 + va108xx/src/tim0/ctrl.rs | 1 + va108xx/src/tim0/perid.rs | 1 + va108xx/src/tim0/pwm_value.rs | 1 + va108xx/src/tim0/pwma_value.rs | 1 + va108xx/src/tim0/pwmb_value.rs | 1 + va108xx/src/tim0/rst_value.rs | 1 + va108xx/src/uarta/addr9.rs | 1 + va108xx/src/uarta/addr9mask.rs | 1 + va108xx/src/uarta/data.rs | 1 + va108xx/src/uarta/perid.rs | 1 + va108xx/src/uarta/rxfifoirqtrg.rs | 1 + va108xx/src/uarta/rxfifortstrg.rs | 1 + va108xx/src/uarta/state.rs | 1 + va108xx/src/uarta/txbreak.rs | 1 + va108xx/src/uarta/txfifoirqtrg.rs | 1 + va108xx/src/utility/perid.rs | 1 + va108xx/src/utility/synd_check_32_52_data.rs | 1 + va108xx/src/utility/synd_check_32_52_synd.rs | 1 + va108xx/src/utility/synd_check_32_data.rs | 1 + va108xx/src/utility/synd_check_32_synd.rs | 1 + va108xx/src/utility/synd_check_64_data0.rs | 1 + va108xx/src/utility/synd_check_64_data1.rs | 1 + va108xx/src/utility/synd_check_64_synd.rs | 1 + va108xx/src/utility/synd_data0.rs | 1 + va108xx/src/utility/synd_data1.rs | 1 + va108xx/src/utility/synd_enc_32.rs | 1 + va108xx/src/utility/synd_enc_32_52.rs | 1 + va108xx/src/utility/synd_enc_64.rs | 1 + va108xx/src/utility/synd_synd.rs | 1 + 95 files changed, 108 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3d02ed..53d0204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: targets: "thumbv6m-none-eabi" - run: cargo check --target thumbv6m-none-eabi - run: cargo check --target thumbv6m-none-eabi --examples + - run: cargo check -p va108xx --target thumbv6m-none-eabi --all-features + - run: cargo check -p va108xx-hal --target thumbv6m-none-eabi --features "defmt" test: name: Run Tests diff --git a/va108xx/CHANGELOG.md b/va108xx/CHANGELOG.md index 5ddd82e..06c0e76 100644 --- a/va108xx/CHANGELOG.md +++ b/va108xx/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [unreleased] +## [v0.5.0] 2025-02-14 + +- Re-generated PAC with `svd2rust` v0.35.0 and added optional `defmt` and `Debug` implementations + ## [v0.4.0] 2025-02-12 - Re-generated PAC with `svd2rust` v0.35.0 diff --git a/va108xx/Cargo.toml b/va108xx/Cargo.toml index ff8ee8b..0015e46 100644 --- a/va108xx/Cargo.toml +++ b/va108xx/Cargo.toml @@ -13,6 +13,7 @@ categories = ["embedded", "no-std", "hardware-support"] [dependencies] cortex-m = "0.7" vcell = "0.1.3" +defmt = "0.3" critical-section = { version = "1", optional = true } [dependencies.cortex-m-rt] @@ -21,6 +22,10 @@ version = ">=0.6.15,<0.8" [features] rt = ["cortex-m-rt/device"] +# Adds defmt support +defmt = [] +# Adds Debug implementation +debug = [] [package.metadata.docs.rs] all-features = true diff --git a/va108xx/README.md b/va108xx/README.md index 90910f0..ff37d3d 100644 --- a/va108xx/README.md +++ b/va108xx/README.md @@ -26,6 +26,12 @@ The `rt` feature is optional and recommended. It brings in support for `cortex-m For full details on the autgenerated API, please see the [svd2rust documentation](https://docs.rs/svd2rust/latest/svd2rust/#peripheral-api). +## Optional Features + +- [`defmt`](https://defmt.ferrous-systems.com/): Add support for `defmt` by adding the + [`defmt::Format`](https://defmt.ferrous-systems.com/format) derive on many types. +- [`debug`]: Add `Debug` derives for various structures + ## Regenerating the PAC If you want to re-generate the PAC, for example if the register file `va416xx.svd` changes diff --git a/va108xx/gen-helper.sh b/va108xx/gen-helper.sh index 051dc2a..64cb72e 100755 --- a/va108xx/gen-helper.sh +++ b/va108xx/gen-helper.sh @@ -30,7 +30,7 @@ fi svdtools patch svd/va108xx-patch.yml # See https://github.com/rust-embedded/svd2rust/issues/830 for required re-export. -${svd2rust_bin} --reexport-interrupt -i svd/va108xx.svd.patched +${svd2rust_bin} --reexport-interrupt --impl-defmt defmt --impl-debug-feature debug -i svd/va108xx.svd.patched result=$? if [ $result -ne 0 ]; then diff --git a/va108xx/src/i2ca/address.rs b/va108xx/src/i2ca/address.rs index 51f6c13..51d1ae1 100644 --- a/va108xx/src/i2ca/address.rs +++ b/va108xx/src/i2ca/address.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `ADDRESS` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/clktolimit.rs b/va108xx/src/i2ca/clktolimit.rs index 7816c03..4c289f7 100644 --- a/va108xx/src/i2ca/clktolimit.rs +++ b/va108xx/src/i2ca/clktolimit.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `CLKTOLIMIT` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/cmd.rs b/va108xx/src/i2ca/cmd.rs index 67d22b0..8ae8aaa 100644 --- a/va108xx/src/i2ca/cmd.rs +++ b/va108xx/src/i2ca/cmd.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `CMD` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/data.rs b/va108xx/src/i2ca/data.rs index b981752..55983d3 100644 --- a/va108xx/src/i2ca/data.rs +++ b/va108xx/src/i2ca/data.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `DATA` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/perid.rs b/va108xx/src/i2ca/perid.rs index c420161..cb9be57 100644 --- a/va108xx/src/i2ca/perid.rs +++ b/va108xx/src/i2ca/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/rxcount.rs b/va108xx/src/i2ca/rxcount.rs index f0d332e..af5fae5 100644 --- a/va108xx/src/i2ca/rxcount.rs +++ b/va108xx/src/i2ca/rxcount.rs @@ -1,5 +1,6 @@ #[doc = "Register `RXCOUNT` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/rxfifoirqtrg.rs b/va108xx/src/i2ca/rxfifoirqtrg.rs index 8376847..450e256 100644 --- a/va108xx/src/i2ca/rxfifoirqtrg.rs +++ b/va108xx/src/i2ca/rxfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_address.rs b/va108xx/src/i2ca/s0_address.rs index 314a593..f1190a8 100644 --- a/va108xx/src/i2ca/s0_address.rs +++ b/va108xx/src/i2ca/s0_address.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_ADDRESS` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_addressb.rs b/va108xx/src/i2ca/s0_addressb.rs index 394b9fb..fce6b74 100644 --- a/va108xx/src/i2ca/s0_addressb.rs +++ b/va108xx/src/i2ca/s0_addressb.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_ADDRESSB` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_addressmask.rs b/va108xx/src/i2ca/s0_addressmask.rs index 442fb95..eb555dd 100644 --- a/va108xx/src/i2ca/s0_addressmask.rs +++ b/va108xx/src/i2ca/s0_addressmask.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_ADDRESSMASK` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_addressmaskb.rs b/va108xx/src/i2ca/s0_addressmaskb.rs index 572f2dd..4fd3b4f 100644 --- a/va108xx/src/i2ca/s0_addressmaskb.rs +++ b/va108xx/src/i2ca/s0_addressmaskb.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_ADDRESSMASKB` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_data.rs b/va108xx/src/i2ca/s0_data.rs index b9796ec..f1268e6 100644 --- a/va108xx/src/i2ca/s0_data.rs +++ b/va108xx/src/i2ca/s0_data.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_DATA` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_lastaddress.rs b/va108xx/src/i2ca/s0_lastaddress.rs index da55435..cbdb539 100644 --- a/va108xx/src/i2ca/s0_lastaddress.rs +++ b/va108xx/src/i2ca/s0_lastaddress.rs @@ -1,5 +1,6 @@ #[doc = "Register `S0_LASTADDRESS` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_maxwords.rs b/va108xx/src/i2ca/s0_maxwords.rs index 34a2f2c..ec83849 100644 --- a/va108xx/src/i2ca/s0_maxwords.rs +++ b/va108xx/src/i2ca/s0_maxwords.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_MAXWORDS` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_rxcount.rs b/va108xx/src/i2ca/s0_rxcount.rs index 3ba8a74..82d10cb 100644 --- a/va108xx/src/i2ca/s0_rxcount.rs +++ b/va108xx/src/i2ca/s0_rxcount.rs @@ -1,5 +1,6 @@ #[doc = "Register `S0_RXCOUNT` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_rxfifoirqtrg.rs b/va108xx/src/i2ca/s0_rxfifoirqtrg.rs index 065b9f2..9a37cf4 100644 --- a/va108xx/src/i2ca/s0_rxfifoirqtrg.rs +++ b/va108xx/src/i2ca/s0_rxfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_RXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_state.rs b/va108xx/src/i2ca/s0_state.rs index 9be0a91..d68368e 100644 --- a/va108xx/src/i2ca/s0_state.rs +++ b/va108xx/src/i2ca/s0_state.rs @@ -1,5 +1,6 @@ #[doc = "Register `S0_STATE` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_txcount.rs b/va108xx/src/i2ca/s0_txcount.rs index afba048..59e688d 100644 --- a/va108xx/src/i2ca/s0_txcount.rs +++ b/va108xx/src/i2ca/s0_txcount.rs @@ -1,5 +1,6 @@ #[doc = "Register `S0_TXCOUNT` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/s0_txfifoirqtrg.rs b/va108xx/src/i2ca/s0_txfifoirqtrg.rs index 407167b..4520652 100644 --- a/va108xx/src/i2ca/s0_txfifoirqtrg.rs +++ b/va108xx/src/i2ca/s0_txfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `S0_TXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/state.rs b/va108xx/src/i2ca/state.rs index 81fe633..d623f7f 100644 --- a/va108xx/src/i2ca/state.rs +++ b/va108xx/src/i2ca/state.rs @@ -1,5 +1,6 @@ #[doc = "Register `STATE` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/tmconfig.rs b/va108xx/src/i2ca/tmconfig.rs index aa219ba..c8ac040 100644 --- a/va108xx/src/i2ca/tmconfig.rs +++ b/va108xx/src/i2ca/tmconfig.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TMCONFIG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/txcount.rs b/va108xx/src/i2ca/txcount.rs index 41e1987..239cae9 100644 --- a/va108xx/src/i2ca/txcount.rs +++ b/va108xx/src/i2ca/txcount.rs @@ -1,5 +1,6 @@ #[doc = "Register `TXCOUNT` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/txfifoirqtrg.rs b/va108xx/src/i2ca/txfifoirqtrg.rs index 8d0ae92..00aa42f 100644 --- a/va108xx/src/i2ca/txfifoirqtrg.rs +++ b/va108xx/src/i2ca/txfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/i2ca/words.rs b/va108xx/src/i2ca/words.rs index 2b890bf..a7385e2 100644 --- a/va108xx/src/i2ca/words.rs +++ b/va108xx/src/i2ca/words.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `WORDS` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/ioconfig/perid.rs b/va108xx/src/ioconfig/perid.rs index 6638b5f..170c08a 100644 --- a/va108xx/src/ioconfig/perid.rs +++ b/va108xx/src/ioconfig/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/ioconfig/porta.rs b/va108xx/src/ioconfig/porta.rs index 32e9ef5..9dd8a98 100644 --- a/va108xx/src/ioconfig/porta.rs +++ b/va108xx/src/ioconfig/porta.rs @@ -3,6 +3,7 @@ pub type R = crate::R; #[doc = "Register `PORTA[%s]` writer"] pub type W = crate::W; #[doc = "Input Filter Selectoin\n\nValue on reset: 0"] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[repr(u8)] pub enum Flttype { diff --git a/va108xx/src/irqsel/int_ram_sbe.rs b/va108xx/src/irqsel/int_ram_sbe.rs index ea83fe8..bf8efd5 100644 --- a/va108xx/src/irqsel/int_ram_sbe.rs +++ b/va108xx/src/irqsel/int_ram_sbe.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `INT_RAM_SBE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/irqsel/perid.rs b/va108xx/src/irqsel/perid.rs index 716aa3f..0593594 100644 --- a/va108xx/src/irqsel/perid.rs +++ b/va108xx/src/irqsel/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/lib.rs b/va108xx/src/lib.rs index 8e4d11c..60456d2 100644 --- a/va108xx/src/lib.rs +++ b/va108xx/src/lib.rs @@ -97,6 +97,7 @@ pub static __INTERRUPTS: [Vector; 32] = [ Vector { _handler: OC31 }, ]; #[doc = r"Enumeration of all the interrupts."] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] #[derive(Copy, Clone, Debug, PartialEq, Eq)] #[repr(u16)] pub enum Interrupt { diff --git a/va108xx/src/porta/datain.rs b/va108xx/src/porta/datain.rs index 10c0f7c..1038a45 100644 --- a/va108xx/src/porta/datain.rs +++ b/va108xx/src/porta/datain.rs @@ -1,5 +1,6 @@ #[doc = "Register `DATAIN` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/datainbyte.rs b/va108xx/src/porta/datainbyte.rs index 975ec65..1fd62e9 100644 --- a/va108xx/src/porta/datainbyte.rs +++ b/va108xx/src/porta/datainbyte.rs @@ -1,5 +1,6 @@ #[doc = "Register `DATAINBYTE[%s]` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/datamask.rs b/va108xx/src/porta/datamask.rs index 5185323..50c9bde 100644 --- a/va108xx/src/porta/datamask.rs +++ b/va108xx/src/porta/datamask.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `DATAMASK` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/datamaskbyte.rs b/va108xx/src/porta/datamaskbyte.rs index 5ac5d4c..5705734 100644 --- a/va108xx/src/porta/datamaskbyte.rs +++ b/va108xx/src/porta/datamaskbyte.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `DATAMASKBYTE[%s]` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/dataout.rs b/va108xx/src/porta/dataout.rs index f36ae05..3ced437 100644 --- a/va108xx/src/porta/dataout.rs +++ b/va108xx/src/porta/dataout.rs @@ -1,5 +1,6 @@ #[doc = "Register `DATAOUT` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for crate::generic::Reg { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "(not readable)") diff --git a/va108xx/src/porta/dataoutbyte.rs b/va108xx/src/porta/dataoutbyte.rs index 3344ad6..a125cd7 100644 --- a/va108xx/src/porta/dataoutbyte.rs +++ b/va108xx/src/porta/dataoutbyte.rs @@ -1,5 +1,6 @@ #[doc = "Register `DATAOUTBYTE[%s]` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for crate::generic::Reg { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "(not readable)") diff --git a/va108xx/src/porta/edge_status.rs b/va108xx/src/porta/edge_status.rs index 2c33d2a..16b3b53 100644 --- a/va108xx/src/porta/edge_status.rs +++ b/va108xx/src/porta/edge_status.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `EDGE_STATUS` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_edge.rs b/va108xx/src/porta/irq_edge.rs index 1f24586..010e596 100644 --- a/va108xx/src/porta/irq_edge.rs +++ b/va108xx/src/porta/irq_edge.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `IRQ_EDGE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_enb.rs b/va108xx/src/porta/irq_enb.rs index 3f1c60e..6a308e3 100644 --- a/va108xx/src/porta/irq_enb.rs +++ b/va108xx/src/porta/irq_enb.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `IRQ_ENB` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_end.rs b/va108xx/src/porta/irq_end.rs index 9cc9e4e..5701cd8 100644 --- a/va108xx/src/porta/irq_end.rs +++ b/va108xx/src/porta/irq_end.rs @@ -1,5 +1,6 @@ #[doc = "Register `IRQ_END` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_evt.rs b/va108xx/src/porta/irq_evt.rs index f23485c..1b727da 100644 --- a/va108xx/src/porta/irq_evt.rs +++ b/va108xx/src/porta/irq_evt.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `IRQ_EVT` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_raw.rs b/va108xx/src/porta/irq_raw.rs index d30086c..95d08c5 100644 --- a/va108xx/src/porta/irq_raw.rs +++ b/va108xx/src/porta/irq_raw.rs @@ -1,5 +1,6 @@ #[doc = "Register `IRQ_RAW` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/irq_sen.rs b/va108xx/src/porta/irq_sen.rs index 70346cc..05a689a 100644 --- a/va108xx/src/porta/irq_sen.rs +++ b/va108xx/src/porta/irq_sen.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `IRQ_SEN` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/porta/perid.rs b/va108xx/src/porta/perid.rs index 8dc80da..fbacdc8 100644 --- a/va108xx/src/porta/perid.rs +++ b/va108xx/src/porta/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/clkprescale.rs b/va108xx/src/spia/clkprescale.rs index bcf8350..3c7a5ad 100644 --- a/va108xx/src/spia/clkprescale.rs +++ b/va108xx/src/spia/clkprescale.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `CLKPRESCALE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/data.rs b/va108xx/src/spia/data.rs index b981752..55983d3 100644 --- a/va108xx/src/spia/data.rs +++ b/va108xx/src/spia/data.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `DATA` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/perid.rs b/va108xx/src/spia/perid.rs index de2abb0..68e90c4 100644 --- a/va108xx/src/spia/perid.rs +++ b/va108xx/src/spia/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/rxfifoirqtrg.rs b/va108xx/src/spia/rxfifoirqtrg.rs index 8376847..450e256 100644 --- a/va108xx/src/spia/rxfifoirqtrg.rs +++ b/va108xx/src/spia/rxfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/state.rs b/va108xx/src/spia/state.rs index 96de72f..0e11448 100644 --- a/va108xx/src/spia/state.rs +++ b/va108xx/src/spia/state.rs @@ -1,5 +1,6 @@ #[doc = "Register `STATE` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/spia/txfifoirqtrg.rs b/va108xx/src/spia/txfifoirqtrg.rs index 8d0ae92..00aa42f 100644 --- a/va108xx/src/spia/txfifoirqtrg.rs +++ b/va108xx/src/spia/txfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/ef_config.rs b/va108xx/src/sysconfig/ef_config.rs index db0d3c8..a966e52 100644 --- a/va108xx/src/sysconfig/ef_config.rs +++ b/va108xx/src/sysconfig/ef_config.rs @@ -1,5 +1,6 @@ #[doc = "Register `EF_CONFIG` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/ef_id.rs b/va108xx/src/sysconfig/ef_id.rs index 08e4a1c..374fc21 100644 --- a/va108xx/src/sysconfig/ef_id.rs +++ b/va108xx/src/sysconfig/ef_id.rs @@ -1,5 +1,6 @@ #[doc = "Register `EF_ID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/ioconfig_clkdiv.rs b/va108xx/src/sysconfig/ioconfig_clkdiv.rs index 80d69d3..26f8e23 100644 --- a/va108xx/src/sysconfig/ioconfig_clkdiv.rs +++ b/va108xx/src/sysconfig/ioconfig_clkdiv.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `IOCONFIG_CLKDIV%s` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/ioconfig_clkdiv0.rs b/va108xx/src/sysconfig/ioconfig_clkdiv0.rs index 9fb41a2..820574d 100644 --- a/va108xx/src/sysconfig/ioconfig_clkdiv0.rs +++ b/va108xx/src/sysconfig/ioconfig_clkdiv0.rs @@ -1,5 +1,6 @@ #[doc = "Register `IOCONFIG_CLKDIV0` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/perid.rs b/va108xx/src/sysconfig/perid.rs index 716aa3f..0593594 100644 --- a/va108xx/src/sysconfig/perid.rs +++ b/va108xx/src/sysconfig/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/procid.rs b/va108xx/src/sysconfig/procid.rs index 935192f..98b8907 100644 --- a/va108xx/src/sysconfig/procid.rs +++ b/va108xx/src/sysconfig/procid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PROCID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/ram_sbe.rs b/va108xx/src/sysconfig/ram_sbe.rs index 635d14e..ea5e1fb 100644 --- a/va108xx/src/sysconfig/ram_sbe.rs +++ b/va108xx/src/sysconfig/ram_sbe.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RAM_SBE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/refresh_config.rs b/va108xx/src/sysconfig/refresh_config.rs index 5df8ab0..1db3ff5 100644 --- a/va108xx/src/sysconfig/refresh_config.rs +++ b/va108xx/src/sysconfig/refresh_config.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `REFRESH_CONFIG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/rom_retries.rs b/va108xx/src/sysconfig/rom_retries.rs index 35e0d33..ad4b958 100644 --- a/va108xx/src/sysconfig/rom_retries.rs +++ b/va108xx/src/sysconfig/rom_retries.rs @@ -1,5 +1,6 @@ #[doc = "Register `ROM_RETRIES` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/tim_clk_enable.rs b/va108xx/src/sysconfig/tim_clk_enable.rs index d636e34..e447e2e 100644 --- a/va108xx/src/sysconfig/tim_clk_enable.rs +++ b/va108xx/src/sysconfig/tim_clk_enable.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TIM_CLK_ENABLE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/sysconfig/tim_reset.rs b/va108xx/src/sysconfig/tim_reset.rs index db62288..e49a92b 100644 --- a/va108xx/src/sysconfig/tim_reset.rs +++ b/va108xx/src/sysconfig/tim_reset.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TIM_RESET` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/cnt_value.rs b/va108xx/src/tim0/cnt_value.rs index 7ae8efe..ca86af8 100644 --- a/va108xx/src/tim0/cnt_value.rs +++ b/va108xx/src/tim0/cnt_value.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `CNT_VALUE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/ctrl.rs b/va108xx/src/tim0/ctrl.rs index ca33018..16f504b 100644 --- a/va108xx/src/tim0/ctrl.rs +++ b/va108xx/src/tim0/ctrl.rs @@ -21,6 +21,7 @@ pub type IrqEnbR = crate::BitReader; #[doc = "Field `IRQ_ENB` writer - Interrupt Enable"] pub type IrqEnbW<'a, REG> = crate::BitWriter<'a, REG>; #[doc = "Counter Status Selection\n\nValue on reset: 0"] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[repr(u8)] pub enum StatusSel { diff --git a/va108xx/src/tim0/perid.rs b/va108xx/src/tim0/perid.rs index 3d405f8..24b82c0 100644 --- a/va108xx/src/tim0/perid.rs +++ b/va108xx/src/tim0/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/pwm_value.rs b/va108xx/src/tim0/pwm_value.rs index 0501c17..690a640 100644 --- a/va108xx/src/tim0/pwm_value.rs +++ b/va108xx/src/tim0/pwm_value.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `PWM_VALUE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/pwma_value.rs b/va108xx/src/tim0/pwma_value.rs index 9536145..4a1bf39 100644 --- a/va108xx/src/tim0/pwma_value.rs +++ b/va108xx/src/tim0/pwma_value.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `PWMA_VALUE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/pwmb_value.rs b/va108xx/src/tim0/pwmb_value.rs index 803f9df..20dd4b0 100644 --- a/va108xx/src/tim0/pwmb_value.rs +++ b/va108xx/src/tim0/pwmb_value.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `PWMB_VALUE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/tim0/rst_value.rs b/va108xx/src/tim0/rst_value.rs index 76c0ddb..42a8873 100644 --- a/va108xx/src/tim0/rst_value.rs +++ b/va108xx/src/tim0/rst_value.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RST_VALUE` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/addr9.rs b/va108xx/src/uarta/addr9.rs index 0c011f2..7cd2716 100644 --- a/va108xx/src/uarta/addr9.rs +++ b/va108xx/src/uarta/addr9.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `ADDR9` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/addr9mask.rs b/va108xx/src/uarta/addr9mask.rs index d130f41..f2b86c6 100644 --- a/va108xx/src/uarta/addr9mask.rs +++ b/va108xx/src/uarta/addr9mask.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `ADDR9MASK` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/data.rs b/va108xx/src/uarta/data.rs index f4f09cb..6a18c04 100644 --- a/va108xx/src/uarta/data.rs +++ b/va108xx/src/uarta/data.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `DATA` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/perid.rs b/va108xx/src/uarta/perid.rs index de2abb0..68e90c4 100644 --- a/va108xx/src/uarta/perid.rs +++ b/va108xx/src/uarta/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/rxfifoirqtrg.rs b/va108xx/src/uarta/rxfifoirqtrg.rs index 8376847..450e256 100644 --- a/va108xx/src/uarta/rxfifoirqtrg.rs +++ b/va108xx/src/uarta/rxfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/rxfifortstrg.rs b/va108xx/src/uarta/rxfifortstrg.rs index 2938f15..06971f4 100644 --- a/va108xx/src/uarta/rxfifortstrg.rs +++ b/va108xx/src/uarta/rxfifortstrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `RXFIFORTSTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/state.rs b/va108xx/src/uarta/state.rs index ecdf97f..71c172a 100644 --- a/va108xx/src/uarta/state.rs +++ b/va108xx/src/uarta/state.rs @@ -1,5 +1,6 @@ #[doc = "Register `STATE` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/uarta/txbreak.rs b/va108xx/src/uarta/txbreak.rs index 5e5002f..f54c610 100644 --- a/va108xx/src/uarta/txbreak.rs +++ b/va108xx/src/uarta/txbreak.rs @@ -1,5 +1,6 @@ #[doc = "Register `TXBREAK` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for crate::generic::Reg { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "(not readable)") diff --git a/va108xx/src/uarta/txfifoirqtrg.rs b/va108xx/src/uarta/txfifoirqtrg.rs index 8d0ae92..00aa42f 100644 --- a/va108xx/src/uarta/txfifoirqtrg.rs +++ b/va108xx/src/uarta/txfifoirqtrg.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `TXFIFOIRQTRG` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/perid.rs b/va108xx/src/utility/perid.rs index 6638b5f..170c08a 100644 --- a/va108xx/src/utility/perid.rs +++ b/va108xx/src/utility/perid.rs @@ -1,5 +1,6 @@ #[doc = "Register `PERID` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_32_52_data.rs b/va108xx/src/utility/synd_check_32_52_data.rs index f9cb4a8..c9bc2f3 100644 --- a/va108xx/src/utility/synd_check_32_52_data.rs +++ b/va108xx/src/utility/synd_check_32_52_data.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_32_52_DATA` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_32_52_synd.rs b/va108xx/src/utility/synd_check_32_52_synd.rs index 0788d1b..0ebaf88 100644 --- a/va108xx/src/utility/synd_check_32_52_synd.rs +++ b/va108xx/src/utility/synd_check_32_52_synd.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_32_52_SYND` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_32_data.rs b/va108xx/src/utility/synd_check_32_data.rs index 0328c0b..4d936d5 100644 --- a/va108xx/src/utility/synd_check_32_data.rs +++ b/va108xx/src/utility/synd_check_32_data.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_32_DATA` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_32_synd.rs b/va108xx/src/utility/synd_check_32_synd.rs index 5e8aabe..22983ca 100644 --- a/va108xx/src/utility/synd_check_32_synd.rs +++ b/va108xx/src/utility/synd_check_32_synd.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_32_SYND` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_64_data0.rs b/va108xx/src/utility/synd_check_64_data0.rs index a59e21d..e82ef4d 100644 --- a/va108xx/src/utility/synd_check_64_data0.rs +++ b/va108xx/src/utility/synd_check_64_data0.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_64_DATA0` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_64_data1.rs b/va108xx/src/utility/synd_check_64_data1.rs index 3ef8f2c..6f65a61 100644 --- a/va108xx/src/utility/synd_check_64_data1.rs +++ b/va108xx/src/utility/synd_check_64_data1.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_64_DATA1` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_check_64_synd.rs b/va108xx/src/utility/synd_check_64_synd.rs index 7054208..547603a 100644 --- a/va108xx/src/utility/synd_check_64_synd.rs +++ b/va108xx/src/utility/synd_check_64_synd.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_CHECK_64_SYND` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_data0.rs b/va108xx/src/utility/synd_data0.rs index ce0ffe2..bb8e4e5 100644 --- a/va108xx/src/utility/synd_data0.rs +++ b/va108xx/src/utility/synd_data0.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `SYND_DATA0` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_data1.rs b/va108xx/src/utility/synd_data1.rs index af2e6f7..3e2536e 100644 --- a/va108xx/src/utility/synd_data1.rs +++ b/va108xx/src/utility/synd_data1.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `SYND_DATA1` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_enc_32.rs b/va108xx/src/utility/synd_enc_32.rs index 7251b0c..cdc1253 100644 --- a/va108xx/src/utility/synd_enc_32.rs +++ b/va108xx/src/utility/synd_enc_32.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_ENC_32` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_enc_32_52.rs b/va108xx/src/utility/synd_enc_32_52.rs index cc58b32..492b36e 100644 --- a/va108xx/src/utility/synd_enc_32_52.rs +++ b/va108xx/src/utility/synd_enc_32_52.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_ENC_32_52` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_enc_64.rs b/va108xx/src/utility/synd_enc_64.rs index 4b58150..22d1b17 100644 --- a/va108xx/src/utility/synd_enc_64.rs +++ b/va108xx/src/utility/synd_enc_64.rs @@ -1,5 +1,6 @@ #[doc = "Register `SYND_ENC_64` reader"] pub type R = crate::R; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits()) diff --git a/va108xx/src/utility/synd_synd.rs b/va108xx/src/utility/synd_synd.rs index 1f7abc4..661967a 100644 --- a/va108xx/src/utility/synd_synd.rs +++ b/va108xx/src/utility/synd_synd.rs @@ -2,6 +2,7 @@ pub type R = crate::R; #[doc = "Register `SYND_SYND` writer"] pub type W = crate::W; +#[cfg(feature = "debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { write!(f, "{}", self.bits())