diff options
author | 2023-10-16 01:33:34 +0100 | |
---|---|---|
committer | 2023-10-16 01:57:48 +0100 | |
commit | 0a701d68b51da9468a9a5e518667d4c037102e85 (patch) | |
tree | ea97c5f9726b46e5f9aef2721208645fa37d9750 /src/peripheral/icb.rs | |
parent | c52330f333afe5358b5b6cccb4837eeb92af2759 (diff) | |
download | cortex-m-0a701d68b51da9468a9a5e518667d4c037102e85.tar.gz cortex-m-0a701d68b51da9468a9a5e518667d4c037102e85.tar.zst cortex-m-0a701d68b51da9468a9a5e518667d4c037102e85.zip |
Move cortex-m crate into cortex-m directory
Diffstat (limited to 'src/peripheral/icb.rs')
-rw-r--r-- | src/peripheral/icb.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/peripheral/icb.rs b/src/peripheral/icb.rs deleted file mode 100644 index e1de33b..0000000 --- a/src/peripheral/icb.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! Implementation Control Block - -#[cfg(any(armv7m, armv8m, native))] -use volatile_register::RO; -use volatile_register::RW; - -/// Register block -#[repr(C)] -pub struct RegisterBlock { - /// Interrupt Controller Type Register - /// - /// The bottom four bits of this register give the number of implemented - /// interrupt lines, divided by 32. So a value of `0b0010` indicates 64 - /// interrupts. - #[cfg(any(armv7m, armv8m, native))] - pub ictr: RO<u32>, - - /// The ICTR is not defined in the ARMv6-M Architecture Reference manual, so - /// we replace it with this. - #[cfg(not(any(armv7m, armv8m, native)))] - _reserved: u32, - - /// Auxiliary Control Register - /// - /// This register is entirely implementation defined -- the standard gives - /// it an address, but does not define its role or contents. - pub actlr: RW<u32>, - - /// Coprocessor Power Control Register - #[cfg(armv8m)] - pub cppwr: RW<u32>, -} |