Skip to content

Commit fd3d71c

Browse files
committed
PAC update
1 parent 1a83f93 commit fd3d71c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+105
-3
lines changed

va108xx/CHANGELOG.md

Lines changed: 4 additions & 0 deletions

va108xx/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ version = ">=0.6.15,<0.8"
2121

2222
[features]
2323
rt = ["cortex-m-rt/device"]
24+
# Adds defmt support
25+
defmt = []
26+
# Adds Debug implementation
27+
debug = []
2428

2529
[package.metadata.docs.rs]
2630
all-features = true

va108xx/README.md

Lines changed: 6 additions & 0 deletions

va108xx/gen-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fi
3030

3131
svdtools patch svd/va108xx-patch.yml
3232
# See https://github.com/rust-embedded/svd2rust/issues/830 for required re-export.
33-
${svd2rust_bin} --reexport-interrupt -i svd/va108xx.svd.patched
33+
${svd2rust_bin} --reexport-interrupt --impl-defmt defmt --impl-debug-feature debug -i svd/va108xx.svd.patched
3434

3535
result=$?
3636
if [ $result -ne 0 ]; then

va108xx/src/i2ca/address.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pub type R = crate::R<AddressSpec>;
33
#[doc = "Register `ADDRESS` writer"]
44
pub type W = crate::W<AddressSpec>;
5+
#[cfg(feature = "debug")]
56
impl core::fmt::Debug for R {
67
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
78
write!(f, "{}", self.bits())

va108xx/src/i2ca/clktolimit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pub type R = crate::R<ClktolimitSpec>;
33
#[doc = "Register `CLKTOLIMIT` writer"]
44
pub type W = crate::W<ClktolimitSpec>;
5+
#[cfg(feature = "debug")]
56
impl core::fmt::Debug for R {
67
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
78
write!(f, "{}", self.bits())

va108xx/src/i2ca/cmd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pub type R = crate::R<CmdSpec>;
33
#[doc = "Register `CMD` writer"]
44
pub type W = crate::W<CmdSpec>;
5+
#[cfg(feature = "debug")]
56
impl core::fmt::Debug for R {
67
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
78
write!(f, "{}", self.bits())

va108xx/src/i2ca/data.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pub type R = crate::R<DataSpec>;
33
#[doc = "Register `DATA` writer"]
44
pub type W = crate::W<DataSpec>;
5+
#[cfg(feature = "debug")]
56
impl core::fmt::Debug for R {
67
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
78
write!(f, "{}", self.bits())

va108xx/src/i2ca/perid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#[doc = "Register `PERID` reader"]
22
pub type R = crate::R<PeridSpec>;
3+
#[cfg(feature = "debug")]
34
impl core::fmt::Debug for R {
45
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
56
write!(f, "{}", self.bits())

va108xx/src/i2ca/rxcount.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#[doc = "Register `RXCOUNT` reader"]
22
pub type R = crate::R<RxcountSpec>;
3+
#[cfg(feature = "debug")]
34
impl core::fmt::Debug for R {
45
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
56
write!(f, "{}", self.bits())

0 commit comments

Comments
 (0)