File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ fn main() {
29
29
} else if target. starts_with ( "thumbv8m.base" ) {
30
30
println ! ( "cargo:rustc-cfg=cortex_m" ) ;
31
31
println ! ( "cargo:rustc-cfg=armv8m" ) ;
32
+ println ! ( "cargo:rustc-cfg=armv8m_base" ) ;
32
33
} else if target. starts_with ( "thumbv8m.main" ) {
33
34
println ! ( "cargo:rustc-cfg=cortex_m" ) ;
34
35
println ! ( "cargo:rustc-cfg=armv8m" ) ;
Original file line number Diff line number Diff line change 26
26
//!
27
27
//! - Cortex-M* Devices Generic User Guide - Section 2.1.3 Core registers
28
28
29
- #[ cfg( not( armv6m) ) ]
29
+ #[ cfg( all ( not( armv6m) , not ( armv8m_base ) ) ) ]
30
30
pub mod basepri;
31
31
32
- #[ cfg( not( armv6m) ) ]
32
+ #[ cfg( armv8m_base) ]
33
+ #[ deprecated(
34
+ since = "0.6.2" ,
35
+ note = "basepri is unavailable on armv8m.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 armv8m.base, and will be removed in the next release"
46
+ ) ]
33
47
pub mod basepri_max;
34
48
35
49
pub mod control;
You can’t perform that action at this time.
0 commit comments