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

Use rust version of svdtools #76

Merged
merged 3 commits into from
Jul 24, 2023
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
debug/
target/
.idea/
.venv/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand Down
36 changes: 18 additions & 18 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,63 @@
#[repr(C)]
pub struct RegisterBlock {
#[doc = "0x00 - ADC Control and Status"]
pub cs: crate::Reg<cs::CS_SPEC>,
pub cs: CS,
#[doc = "0x04 - Result of most recent ADC conversion"]
pub result: crate::Reg<result::RESULT_SPEC>,
pub result: RESULT,
#[doc = "0x08 - FIFO control and status"]
pub fcs: crate::Reg<fcs::FCS_SPEC>,
pub fcs: FCS,
#[doc = "0x0c - Conversion result FIFO"]
pub fifo: crate::Reg<fifo::FIFO_SPEC>,
pub fifo: FIFO,
#[doc = "0x10 - Clock divider. If non-zero, CS_START_MANY will start conversions
at regular intervals rather than back-to-back.
The divider is reset when either of these fields are written.
Total period is 1 + INT + FRAC / 256"]
pub div: crate::Reg<div::DIV_SPEC>,
pub div: DIV,
#[doc = "0x14 - Raw Interrupts"]
pub intr: crate::Reg<intr::INTR_SPEC>,
pub intr: INTR,
#[doc = "0x18 - Interrupt Enable"]
pub inte: crate::Reg<inte::INTE_SPEC>,
pub inte: INTE,
#[doc = "0x1c - Interrupt Force"]
pub intf: crate::Reg<intf::INTF_SPEC>,
pub intf: INTF,
#[doc = "0x20 - Interrupt status after masking & forcing"]
pub ints: crate::Reg<ints::INTS_SPEC>,
pub ints: INTS,
}
#[doc = "CS register accessor: an alias for `Reg<CS_SPEC>`"]
#[doc = "CS (rw) register accessor: an alias for `Reg<CS_SPEC>`"]
pub type CS = crate::Reg<cs::CS_SPEC>;
#[doc = "ADC Control and Status"]
pub mod cs;
#[doc = "RESULT register accessor: an alias for `Reg<RESULT_SPEC>`"]
#[doc = "RESULT (r) register accessor: an alias for `Reg<RESULT_SPEC>`"]
pub type RESULT = crate::Reg<result::RESULT_SPEC>;
#[doc = "Result of most recent ADC conversion"]
pub mod result;
#[doc = "FCS register accessor: an alias for `Reg<FCS_SPEC>`"]
#[doc = "FCS (rw) register accessor: an alias for `Reg<FCS_SPEC>`"]
pub type FCS = crate::Reg<fcs::FCS_SPEC>;
#[doc = "FIFO control and status"]
pub mod fcs;
#[doc = "FIFO register accessor: an alias for `Reg<FIFO_SPEC>`"]
#[doc = "FIFO (r) register accessor: an alias for `Reg<FIFO_SPEC>`"]
pub type FIFO = crate::Reg<fifo::FIFO_SPEC>;
#[doc = "Conversion result FIFO"]
pub mod fifo;
#[doc = "DIV register accessor: an alias for `Reg<DIV_SPEC>`"]
#[doc = "DIV (rw) register accessor: an alias for `Reg<DIV_SPEC>`"]
pub type DIV = crate::Reg<div::DIV_SPEC>;
#[doc = "Clock divider. If non-zero, CS_START_MANY will start conversions
at regular intervals rather than back-to-back.
The divider is reset when either of these fields are written.
Total period is 1 + INT + FRAC / 256"]
pub mod div;
#[doc = "INTR register accessor: an alias for `Reg<INTR_SPEC>`"]
#[doc = "INTR (r) register accessor: an alias for `Reg<INTR_SPEC>`"]
pub type INTR = crate::Reg<intr::INTR_SPEC>;
#[doc = "Raw Interrupts"]
pub mod intr;
#[doc = "INTE register accessor: an alias for `Reg<INTE_SPEC>`"]
#[doc = "INTE (rw) register accessor: an alias for `Reg<INTE_SPEC>`"]
pub type INTE = crate::Reg<inte::INTE_SPEC>;
#[doc = "Interrupt Enable"]
pub mod inte;
#[doc = "INTF register accessor: an alias for `Reg<INTF_SPEC>`"]
#[doc = "INTF (rw) register accessor: an alias for `Reg<INTF_SPEC>`"]
pub type INTF = crate::Reg<intf::INTF_SPEC>;
#[doc = "Interrupt Force"]
pub mod intf;
#[doc = "INTS register accessor: an alias for `Reg<INTS_SPEC>`"]
#[doc = "INTS (r) register accessor: an alias for `Reg<INTS_SPEC>`"]
pub type INTS = crate::Reg<ints::INTS_SPEC>;
#[doc = "Interrupt status after masking & forcing"]
pub mod ints;
Loading