aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/lib.rs
diff options
context:
space:
mode:
authorCaleb Jamison <[email protected]>2024-08-12 05:06:59 -0400
committerCaleb Jamison <[email protected]>2024-08-12 05:06:59 -0400
commit752fbc662a43b677b7ffb7672b01772b28ff4e1f (patch)
treed114a605b5a2a5736af34b728e48ee2960285571 /embassy-rp/src/lib.rs
parent778241fd71b8a0cb541d23b69c3f9e47ec2753ff (diff)
Fix docs, ci
Diffstat (limited to 'embassy-rp/src/lib.rs')
-rw-r--r--embassy-rp/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
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<(), ()> {
497 Ok(()) 497 Ok(())
498} 498}
499 499
500#[cfg(all(feature = "_rp235x", armv8m))] 500#[cfg(all(feature = "_rp235x", not(test)))]
501#[inline(always)] 501#[inline(always)]
502fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { 502fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
503 let core = unsafe { cortex_m::Peripherals::steal() }; 503 let core = unsafe { cortex_m::Peripherals::steal() };
@@ -517,9 +517,9 @@ fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
517 517
518// This is to hack around cortex_m defaulting to ARMv7 when building tests, 518// This is to hack around cortex_m defaulting to ARMv7 when building tests,
519// so the compile fails when we try to use ARMv8 peripherals. 519// so the compile fails when we try to use ARMv8 peripherals.
520#[cfg(all(feature = "_rp235x", not(armv8m)))] 520#[cfg(test)]
521#[inline(always)] 521#[inline(always)]
522fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { 522fn install_stack_guard(_stack_bottom: *mut usize) -> Result<(), ()> {
523 Ok(()) 523 Ok(())
524} 524}
525 525