Skip to content

Commit ee0ff68

Browse files
bors[bot]gkelly
andcommitted
Merge #104
104: Always expose the VTOR register (#100) r=japaric a=gkelly 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. Co-authored-by: Garret Kelly <[email protected]>
2 parents 13b8792 + 88726d9 commit ee0ff68

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)