Skip to content

Commit 88726d9

Browse files
committed
Always expose the VTOR register (#100)
Cortex-M0+ platforms had the VTOR register hidden because of the way the SCB chose to expose it. This change exposes it on all platforms, with the side effect that it will be visible on Cortex-M0 even thought the M0 SCB does not define it.
1 parent 13b8792 commit 88726d9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/peripheral/scb.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ pub struct RegisterBlock {
1919
pub icsr: RW<u32>,
2020

2121
/// Vector Table Offset (not present on Cortex-M0 variants)
22-
#[cfg(not(armv6m))]
2322
pub vtor: RW<u32>,
24-
#[cfg(armv6m)]
25-
_reserved0: u32,
2623

2724
/// Application Interrupt and Reset Control
2825
pub aircr: RW<u32>,

0 commit comments

Comments
 (0)