Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-generate register mappings with svd2rust 0.30.2 #46

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mcan/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Tagging in git follows a pattern: `mcan/<version>`.

## [Unreleased]
- *Breaking* Update the register mappings with svd2rust 0.30.2 and form 0.10.0 (#46)

## [0.4.0] - 2023-10-24

Expand Down
18 changes: 9 additions & 9 deletions mcan/src/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ impl Debug for ProtocolStatus {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ProtocolStatus")
.field("tdcv", &self.tdcv().bits())
.field("pxe", &self.pxe().bits())
.field("rfdf", &self.rfdf().bits())
.field("rbrs", &self.rbrs().bits())
.field("resi", &self.resi().bits())
.field("pxe", &self.pxe().bit())
.field("rfdf", &self.rfdf().bit())
.field("rbrs", &self.rbrs().bit())
.field("resi", &self.resi().bit())
.field("dlec", &self.dlec().bits())
.field("bo", &self.bo().bits())
.field("ew", &self.ew().bits())
.field("ep", &self.ep().bits())
.field("bo", &self.bo().bit())
.field("ew", &self.ew().bit())
.field("ep", &self.ep().bit())
.field("act", &self.act().bits())
.field("lec", &self.lec().bits())
.finish()
Expand Down Expand Up @@ -326,9 +326,9 @@ impl<'a, Id: mcan_core::CanId, D: mcan_core::Dependencies<Id>, C: Capacities>
// filter API
reg.gfc.write(|w| {
w.anfs()
.variant(crate::reg::gfc::ANFS_A::REJECT)
.variant(crate::reg::gfc::ANFSSELECT_A::REJECT)
.anfe()
.variant(crate::reg::gfc::ANFE_A::REJECT)
.variant(crate::reg::gfc::ANFESELECT_A::REJECT)
});

// Configure test/loopback mode
Expand Down
2 changes: 1 addition & 1 deletion mcan/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! CAN bus configuration

pub use crate::reg::{self, tscc::TSS_A as TimeStampSelect};
pub use crate::reg::{self, tscc::TSSSELECT_A as TimeStampSelect};
use core::ops::RangeInclusive;
use fugit::HertzU32;

Expand Down
Loading
Loading