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 { Usb = ClkGpoutCtrlAuxsrc::CLK_USB as _, /// ADC. Adc = ClkGpoutCtrlAuxsrc::CLK_ADC as _, - // RTC. + /// RTC. #[cfg(feature = "rp2040")] Rtc = ClkGpoutCtrlAuxsrc::CLK_RTC as _, /// 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<(), ()> { 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(()) }