aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-08 18:29:40 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-08-08 18:29:40 +0000
commitee0ff685a0bdf903144cbb9db1881f63c21b8992 (patch)
tree4a54c8ce96c11543e2705766ec4dafeac5ecbf8b
parent13b87923deed801adb3f6412efa2c05dc43304c4 (diff)
parent88726d96316e9ab6f71a14619e02ed33478f585b (diff)
downloadcortex-m-ee0ff685a0bdf903144cbb9db1881f63c21b8992.tar.gz
cortex-m-ee0ff685a0bdf903144cbb9db1881f63c21b8992.tar.zst
cortex-m-ee0ff685a0bdf903144cbb9db1881f63c21b8992.zip
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 <gdk@google.com>
-rw-r--r--src/peripheral/scb.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 569ec6a..d26e0a6 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -19,10 +19,7 @@ pub struct RegisterBlock {
pub icsr: RW<u32>,
/// Vector Table Offset (not present on Cortex-M0 variants)
- #[cfg(not(armv6m))]
pub vtor: RW<u32>,
- #[cfg(armv6m)]
- _reserved0: u32,
/// Application Interrupt and Reset Control
pub aircr: RW<u32>,