aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-rp/src/clocks.rs2
-rw-r--r--embassy-rp/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-rp/src/clocks.rs b/embassy-rp/src/clocks.rs
index 0084707f5..5f7ba10e2 100644
--- a/embassy-rp/src/clocks.rs
+++ b/embassy-rp/src/clocks.rs
@@ -902,7 +902,7 @@ pub enum GpoutSrc {
902 Usb = ClkGpoutCtrlAuxsrc::CLK_USB as _, 902 Usb = ClkGpoutCtrlAuxsrc::CLK_USB as _,
903 /// ADC. 903 /// ADC.
904 Adc = ClkGpoutCtrlAuxsrc::CLK_ADC as _, 904 Adc = ClkGpoutCtrlAuxsrc::CLK_ADC as _,
905 // RTC. 905 /// RTC.
906 #[cfg(feature = "rp2040")] 906 #[cfg(feature = "rp2040")]
907 Rtc = ClkGpoutCtrlAuxsrc::CLK_RTC as _, 907 Rtc = ClkGpoutCtrlAuxsrc::CLK_RTC as _,
908 /// REF. 908 /// REF.
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