File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ Unreleased]
99
10+ ### Deprecation
11+
12+ - Deprecated incorrectly included registers (` BASPRI ` , ` BASEPRI_MAX ` , ` FAULTMASK ` ) on ` thumbv8.base `
13+
1014## [ v0.6.1] - 2019-08-21
1115
1216### Fixed
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ fn main() {
2929 } else if target. starts_with ( "thumbv8m.base" ) {
3030 println ! ( "cargo:rustc-cfg=cortex_m" ) ;
3131 println ! ( "cargo:rustc-cfg=armv8m" ) ;
32+ println ! ( "cargo:rustc-cfg=armv8m_base" ) ;
3233 } else if target. starts_with ( "thumbv8m.main" ) {
3334 println ! ( "cargo:rustc-cfg=cortex_m" ) ;
3435 println ! ( "cargo:rustc-cfg=armv8m" ) ;
Original file line number Diff line number Diff line change 2626//!
2727//! - Cortex-M* Devices Generic User Guide - Section 2.1.3 Core registers
2828
29- #[ cfg( not( armv6m) ) ]
29+ #[ cfg( all ( not( armv6m) , not ( armv8m_base ) ) ) ]
3030pub mod basepri;
3131
32- #[ cfg( not( armv6m) ) ]
32+ #[ cfg( armv8m_base) ]
33+ #[ deprecated(
34+ since = "0.6.2" ,
35+ note = "basepri is unavailable on thumbv8.base, and will be removed in the next release"
36+ ) ]
37+ pub mod basepri;
38+
39+ #[ cfg( all( not( armv6m) , not( armv8m_base) ) ) ]
40+ pub mod basepri_max;
41+
42+ #[ cfg( armv8m_base) ]
43+ #[ deprecated(
44+ since = "0.6.2" ,
45+ note = "basepri is unavailable on thumbv8m.base, and will be removed in the next release"
46+ ) ]
3347pub mod basepri_max;
3448
3549pub mod control;
3650
37- #[ cfg( not( armv6m) ) ]
51+ #[ cfg( all( not( armv6m) , not( armv8m_base) ) ) ]
52+ pub mod faultmask;
53+
54+ #[ cfg( armv8m_base) ]
55+ #[ deprecated(
56+ since = "0.6.2" ,
57+ note = "faultmask is unavailable on thumbv8m.base, and will be removed in the next release"
58+ ) ]
3859pub mod faultmask;
3960
4061pub mod msp;
You can’t perform that action at this time.
0 commit comments