aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2019-10-29 08:02:30 +0000
committerGravatar GitHub <noreply@github.com> 2019-10-29 08:02:30 +0000
commit5e8756752e91f17e76db5118637efddfaeb96382 (patch)
treeb460b2149bab702fa707f2f805bf3bf0c7a4e920 /src
parentf505673246117276ecfab692e4b1303dc7496d32 (diff)
parent36651038cc66fc52b9719c23c3cd95792c8b025f (diff)
downloadcortex-m-5e8756752e91f17e76db5118637efddfaeb96382.tar.gz
cortex-m-5e8756752e91f17e76db5118637efddfaeb96382.tar.zst
cortex-m-5e8756752e91f17e76db5118637efddfaeb96382.zip
Merge #167
167: Deprecate basepri/basepri_max on thumbv8m.base r=korken89 a=JJJollyjim First step in resolving #155 Co-authored-by: Jamie McClymont <jamie@kwiius.com>
Diffstat (limited to 'src')
-rw-r--r--src/register/mod.rs27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/register/mod.rs b/src/register/mod.rs
index 854d725..e7879c5 100644
--- a/src/register/mod.rs
+++ b/src/register/mod.rs
@@ -26,15 +26,36 @@
//!
//! - Cortex-M* Devices Generic User Guide - Section 2.1.3 Core registers
-#[cfg(not(armv6m))]
+#[cfg(all(not(armv6m), not(armv8m_base)))]
pub mod basepri;
-#[cfg(not(armv6m))]
+#[cfg(armv8m_base)]
+#[deprecated(
+ since = "0.6.2",
+ note = "basepri is unavailable on thumbv8.base, and will be removed in the next release"
+)]
+pub mod basepri;
+
+#[cfg(all(not(armv6m), not(armv8m_base)))]
+pub mod basepri_max;
+
+#[cfg(armv8m_base)]
+#[deprecated(
+ since = "0.6.2",
+ note = "basepri is unavailable on thumbv8m.base, and will be removed in the next release"
+)]
pub mod basepri_max;
pub mod control;
-#[cfg(not(armv6m))]
+#[cfg(all(not(armv6m), not(armv8m_base)))]
+pub mod faultmask;
+
+#[cfg(armv8m_base)]
+#[deprecated(
+ since = "0.6.2",
+ note = "faultmask is unavailable on thumbv8m.base, and will be removed in the next release"
+)]
pub mod faultmask;
pub mod msp;