summaryrefslogtreecommitdiff
path: root/src/wdt.rs
diff options
context:
space:
mode:
authorArne Dußin2021-11-06 11:50:33 +0100
committerArne Dußin2021-11-06 11:50:33 +0100
commit0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch)
treea184284dbd2316f4624f092e4e7521ea8c90855b /src/wdt.rs
downloadsamc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz
samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip
Initial commit
Diffstat (limited to 'src/wdt.rs')
-rw-r--r--src/wdt.rs54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/wdt.rs b/src/wdt.rs
new file mode 100644
index 0000000..22b5c2b
--- /dev/null
+++ b/src/wdt.rs
@@ -0,0 +1,54 @@
+#[doc = r"Register block"]
+#[repr(C)]
+pub struct RegisterBlock {
+ #[doc = "0x00 - Control"]
+ pub ctrla: crate::Reg<ctrla::CTRLA_SPEC>,
+ #[doc = "0x01 - Configuration"]
+ pub config: crate::Reg<config::CONFIG_SPEC>,
+ #[doc = "0x02 - Early Warning Interrupt Control"]
+ pub ewctrl: crate::Reg<ewctrl::EWCTRL_SPEC>,
+ _reserved3: [u8; 0x01],
+ #[doc = "0x04 - Interrupt Enable Clear"]
+ pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>,
+ #[doc = "0x05 - Interrupt Enable Set"]
+ pub intenset: crate::Reg<intenset::INTENSET_SPEC>,
+ #[doc = "0x06 - Interrupt Flag Status and Clear"]
+ pub intflag: crate::Reg<intflag::INTFLAG_SPEC>,
+ _reserved6: [u8; 0x01],
+ #[doc = "0x08 - Synchronization Busy"]
+ pub syncbusy: crate::Reg<syncbusy::SYNCBUSY_SPEC>,
+ #[doc = "0x0c - Clear"]
+ pub clear: crate::Reg<clear::CLEAR_SPEC>,
+}
+#[doc = "CTRLA register accessor: an alias for `Reg<CTRLA_SPEC>`"]
+pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
+#[doc = "Control"]
+pub mod ctrla;
+#[doc = "CONFIG register accessor: an alias for `Reg<CONFIG_SPEC>`"]
+pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
+#[doc = "Configuration"]
+pub mod config;
+#[doc = "EWCTRL register accessor: an alias for `Reg<EWCTRL_SPEC>`"]
+pub type EWCTRL = crate::Reg<ewctrl::EWCTRL_SPEC>;
+#[doc = "Early Warning Interrupt Control"]
+pub mod ewctrl;
+#[doc = "INTENCLR register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
+pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
+#[doc = "Interrupt Enable Clear"]
+pub mod intenclr;
+#[doc = "INTENSET register accessor: an alias for `Reg<INTENSET_SPEC>`"]
+pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
+#[doc = "Interrupt Enable Set"]
+pub mod intenset;
+#[doc = "INTFLAG register accessor: an alias for `Reg<INTFLAG_SPEC>`"]
+pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>;
+#[doc = "Interrupt Flag Status and Clear"]
+pub mod intflag;
+#[doc = "SYNCBUSY register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"]
+pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>;
+#[doc = "Synchronization Busy"]
+pub mod syncbusy;
+#[doc = "CLEAR register accessor: an alias for `Reg<CLEAR_SPEC>`"]
+pub type CLEAR = crate::Reg<clear::CLEAR_SPEC>;
+#[doc = "Clear"]
+pub mod clear;