From 8285263fc2178be409beff217cb6af4562ea5107 Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Sun, 23 Apr 2023 15:59:56 +0200 Subject: [PATCH] embassy-rp : Added intrinsic feature flag to global_asm macro --- embassy-rp/src/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-rp/src/intrinsics.rs b/embassy-rp/src/intrinsics.rs index 50934e04..04da74cf 100644 --- a/embassy-rp/src/intrinsics.rs +++ b/embassy-rp/src/intrinsics.rs @@ -284,7 +284,7 @@ macro_rules! intrinsics { // alias the division operators to these for a similar reason r0 is the // result either way and r1 a scratch register, so the caller can't assume it // retains the argument value. -#[cfg(target_arch = "arm")] +#[cfg(all(target_arch = "arm", feature = "intrinsics"))] core::arch::global_asm!( ".macro hwdivider_head", "ldr r2, =(0xd0000000)", // SIO_BASE