@@ -12,8 +12,8 @@ use cortex_m_macros::asm_cfg;
1212/// - CRN: Coprocessor register N.
1313/// - CRM: Coprocessor register M.
1414/// - OP2: Second optional operation for the coprocessor.
15- #[ asm_cfg( any( armv7m, armv8m) ) ]
1615#[ inline( always) ]
16+ #[ asm_cfg( any( armv7m, armv8m) ) ]
1717pub unsafe fn mcr < const CP : u32 , const OP1 : u32 , const CRN : u32 , const CRM : u32 , const OP2 : u32 > (
1818 value : u32 ,
1919) {
@@ -41,8 +41,8 @@ pub unsafe fn mcr<const CP: u32, const OP1: u32, const CRN: u32, const CRM: u32,
4141/// - CRN: Coprocessor register N.
4242/// - CRM: Coprocessor register M.
4343/// - OP2: Second optional operation for the coprocessor.
44- #[ asm_cfg( any( armv7m, armv8m) ) ]
4544#[ inline( always) ]
45+ #[ asm_cfg( any( armv7m, armv8m) ) ]
4646pub unsafe fn mrc < const CP : u32 , const OP1 : u32 , const CRN : u32 , const CRM : u32 , const OP2 : u32 > ( )
4747-> u32 {
4848 let a: u32 ;
@@ -71,8 +71,8 @@ pub unsafe fn mrc<const CP: u32, const OP1: u32, const CRN: u32, const CRM: u32,
7171/// - CP: The coprocessor's index.
7272/// - OP1: First optional operation for the coprocessor.
7373/// - CRM: Coprocessor register M.
74- #[ asm_cfg( any( armv7m, armv8m) ) ]
7574#[ inline( always) ]
75+ #[ asm_cfg( any( armv7m, armv8m) ) ]
7676pub unsafe fn mcrr < const CP : u32 , const OP1 : u32 , const CRM : u32 > ( a : u32 , b : u32 ) {
7777 unsafe {
7878 core:: arch:: asm!(
@@ -95,8 +95,8 @@ pub unsafe fn mcrr<const CP: u32, const OP1: u32, const CRM: u32>(a: u32, b: u32
9595/// - CP: The coprocessor's index.
9696/// - OP1: First optional operation for the coprocessor.
9797/// - CRM: Coprocessor register M.
98- #[ asm_cfg( any( armv7m, armv8m) ) ]
9998#[ inline( always) ]
99+ #[ asm_cfg( any( armv7m, armv8m) ) ]
100100pub unsafe fn mrrc < const CP : u32 , const OPC : u32 , const CRM : u32 > ( ) -> ( u32 , u32 ) {
101101 // Preallocate the values.
102102 let a: u32 ;
0 commit comments