diff options
author | 2017-03-07 22:56:06 -0500 | |
---|---|---|
committer | 2017-03-07 22:58:33 -0500 | |
commit | c3a35c1b6cea81aa71e8832bca79ccafa492be02 (patch) | |
tree | e868906d20c906d238be96cd5c07b07342f7a111 /src/peripheral/scb.rs | |
parent | 9d3f3f323f3b7543d0b49e773aea2c68e535ec83 (diff) | |
download | cortex-m-c3a35c1b6cea81aa71e8832bca79ccafa492be02.tar.gz cortex-m-c3a35c1b6cea81aa71e8832bca79ccafa492be02.tar.zst cortex-m-c3a35c1b6cea81aa71e8832bca79ccafa492be02.zip |
revamp for memory safety
Diffstat (limited to 'src/peripheral/scb.rs')
-rw-r--r-- | src/peripheral/scb.rs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs deleted file mode 100644 index d2b204a..0000000 --- a/src/peripheral/scb.rs +++ /dev/null @@ -1,37 +0,0 @@ -//! System Control Block - -use volatile_register::RW; - -/// Registers -#[repr(C)] -pub struct Registers { - /// Interrupt Control and State - pub icsr: RW<u32>, - /// Vector Table Offset - pub vtor: RW<u32>, - /// Application Interrupt and Reset Control - pub aircr: RW<u32>, - /// System Control - pub scr: RW<u32>, - /// Configuration and Control - pub ccr: RW<u32>, - /// System Handler Priority - pub shpr: [RW<u8>; 12], - /// System Handler Control and State - pub shpcrs: RW<u32>, - /// Configurable Fault Status - pub cfsr: RW<u32>, - /// HardFault Status - pub hfsr: RW<u32>, - /// Debug Fault Status - pub dfsr: RW<u32>, - /// MemManage Fault Address - pub mmar: RW<u32>, - /// BusFault Address - pub bfar: RW<u32>, - /// Auxiliary Fault Status - pub afsr: RW<u32>, - reserved: [u32; 18], - /// Coprocessor Access Control - pub cpacr: RW<u32>, -} |