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/system_control.rs | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/system_control.rs (limited to 'src/system_control.rs') diff --git a/src/system_control.rs b/src/system_control.rs new file mode 100644 index 0000000..4894b22 --- /dev/null +++ b/src/system_control.rs @@ -0,0 +1,67 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + _reserved0: [u8; 0x0d00], + #[doc = "0xd00 - CPUID Base Register"] + pub cpuid: crate::Reg, + #[doc = "0xd04 - Interrupt Control and State Register"] + pub icsr: crate::Reg, + #[doc = "0xd08 - Vector Table Offset Register"] + pub vtor: crate::Reg, + #[doc = "0xd0c - Application Interrupt and Reset Control Register"] + pub aircr: crate::Reg, + #[doc = "0xd10 - System Control Register"] + pub scr: crate::Reg, + #[doc = "0xd14 - Configuration and Control Register"] + pub ccr: crate::Reg, + _reserved6: [u8; 0x04], + #[doc = "0xd1c - System Handler Priority Register 2"] + pub shpr2: crate::Reg, + #[doc = "0xd20 - System Handler Priority Register 3"] + pub shpr3: crate::Reg, + #[doc = "0xd24 - System Handler Control and State Register"] + pub shcsr: crate::Reg, + _reserved9: [u8; 0x08], + #[doc = "0xd30 - Debug Fault Status Register"] + pub dfsr: crate::Reg, +} +#[doc = "CPUID register accessor: an alias for `Reg`"] +pub type CPUID = crate::Reg; +#[doc = "CPUID Base Register"] +pub mod cpuid; +#[doc = "ICSR register accessor: an alias for `Reg`"] +pub type ICSR = crate::Reg; +#[doc = "Interrupt Control and State Register"] +pub mod icsr; +#[doc = "VTOR register accessor: an alias for `Reg`"] +pub type VTOR = crate::Reg; +#[doc = "Vector Table Offset Register"] +pub mod vtor; +#[doc = "AIRCR register accessor: an alias for `Reg`"] +pub type AIRCR = crate::Reg; +#[doc = "Application Interrupt and Reset Control Register"] +pub mod aircr; +#[doc = "SCR register accessor: an alias for `Reg`"] +pub type SCR = crate::Reg; +#[doc = "System Control Register"] +pub mod scr; +#[doc = "CCR register accessor: an alias for `Reg`"] +pub type CCR = crate::Reg; +#[doc = "Configuration and Control Register"] +pub mod ccr; +#[doc = "SHPR2 register accessor: an alias for `Reg`"] +pub type SHPR2 = crate::Reg; +#[doc = "System Handler Priority Register 2"] +pub mod shpr2; +#[doc = "SHPR3 register accessor: an alias for `Reg`"] +pub type SHPR3 = crate::Reg; +#[doc = "System Handler Priority Register 3"] +pub mod shpr3; +#[doc = "SHCSR register accessor: an alias for `Reg`"] +pub type SHCSR = crate::Reg; +#[doc = "System Handler Control and State Register"] +pub mod shcsr; +#[doc = "DFSR register accessor: an alias for `Reg`"] +pub type DFSR = crate::Reg; +#[doc = "Debug Fault Status Register"] +pub mod dfsr; -- cgit v1.2.3-70-g09d2