From 752fbc662a43b677b7ffb7672b01772b28ff4e1f Mon Sep 17 00:00:00 2001 From: Caleb Jamison Date: Mon, 12 Aug 2024 05:06:59 -0400 Subject: Fix docs, ci --- embassy-rp/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'embassy-rp/src/lib.rs') diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index dc54c1bfe..f968572b3 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs @@ -497,7 +497,7 @@ fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { Ok(()) } -#[cfg(all(feature = "_rp235x", armv8m))] +#[cfg(all(feature = "_rp235x", not(test)))] #[inline(always)] fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { let core = unsafe { cortex_m::Peripherals::steal() }; @@ -517,9 +517,9 @@ fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { // This is to hack around cortex_m defaulting to ARMv7 when building tests, // so the compile fails when we try to use ARMv8 peripherals. -#[cfg(all(feature = "_rp235x", not(armv8m)))] +#[cfg(test)] #[inline(always)] -fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { +fn install_stack_guard(_stack_bottom: *mut usize) -> Result<(), ()> { Ok(()) } -- cgit