From 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sat, 6 Nov 2021 11:50:33 +0100 Subject: Initial commit --- src/mclk.rs | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/mclk.rs (limited to 'src/mclk.rs') diff --git a/src/mclk.rs b/src/mclk.rs new file mode 100644 index 0000000..2713af2 --- /dev/null +++ b/src/mclk.rs @@ -0,0 +1,60 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + _reserved0: [u8; 0x01], + #[doc = "0x01 - Interrupt Enable Clear"] + pub intenclr: crate::Reg, + #[doc = "0x02 - Interrupt Enable Set"] + pub intenset: crate::Reg, + #[doc = "0x03 - Interrupt Flag Status and Clear"] + pub intflag: crate::Reg, + #[doc = "0x04 - CPU Clock Division"] + pub cpudiv: crate::Reg, + _reserved4: [u8; 0x0b], + #[doc = "0x10 - AHB Mask"] + pub ahbmask: crate::Reg, + #[doc = "0x14 - APBA Mask"] + pub apbamask: crate::Reg, + #[doc = "0x18 - APBB Mask"] + pub apbbmask: crate::Reg, + #[doc = "0x1c - APBC Mask"] + pub apbcmask: crate::Reg, + #[doc = "0x20 - APBD Mask"] + pub apbdmask: crate::Reg, +} +#[doc = "INTENCLR register accessor: an alias for `Reg`"] +pub type INTENCLR = crate::Reg; +#[doc = "Interrupt Enable Clear"] +pub mod intenclr; +#[doc = "INTENSET register accessor: an alias for `Reg`"] +pub type INTENSET = crate::Reg; +#[doc = "Interrupt Enable Set"] +pub mod intenset; +#[doc = "INTFLAG register accessor: an alias for `Reg`"] +pub type INTFLAG = crate::Reg; +#[doc = "Interrupt Flag Status and Clear"] +pub mod intflag; +#[doc = "CPUDIV register accessor: an alias for `Reg`"] +pub type CPUDIV = crate::Reg; +#[doc = "CPU Clock Division"] +pub mod cpudiv; +#[doc = "AHBMASK register accessor: an alias for `Reg`"] +pub type AHBMASK = crate::Reg; +#[doc = "AHB Mask"] +pub mod ahbmask; +#[doc = "APBAMASK register accessor: an alias for `Reg`"] +pub type APBAMASK = crate::Reg; +#[doc = "APBA Mask"] +pub mod apbamask; +#[doc = "APBBMASK register accessor: an alias for `Reg`"] +pub type APBBMASK = crate::Reg; +#[doc = "APBB Mask"] +pub mod apbbmask; +#[doc = "APBCMASK register accessor: an alias for `Reg`"] +pub type APBCMASK = crate::Reg; +#[doc = "APBC Mask"] +pub mod apbcmask; +#[doc = "APBDMASK register accessor: an alias for `Reg`"] +pub type APBDMASK = crate::Reg; +#[doc = "APBD Mask"] +pub mod apbdmask; -- cgit v1.2.3-70-g09d2