Skip to content

Commit 752fbc6

Browse files
committed
Fix docs, ci
1 parent 778241f commit 752fbc6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

embassy-rp/src/clocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ pub enum GpoutSrc {
902902
Usb = ClkGpoutCtrlAuxsrc::CLK_USB as _,
903903
/// ADC.
904904
Adc = ClkGpoutCtrlAuxsrc::CLK_ADC as _,
905-
// RTC.
905+
/// RTC.
906906
#[cfg(feature = "rp2040")]
907907
Rtc = ClkGpoutCtrlAuxsrc::CLK_RTC as _,
908908
/// REF.

embassy-rp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
497497
Ok(())
498498
}
499499

500-
#[cfg(all(feature = "_rp235x", armv8m))]
500+
#[cfg(all(feature = "_rp235x", not(test)))]
501501
#[inline(always)]
502502
fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
503503
let core = unsafe { cortex_m::Peripherals::steal() };
@@ -517,9 +517,9 @@ fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
517517

518518
// This is to hack around cortex_m defaulting to ARMv7 when building tests,
519519
// so the compile fails when we try to use ARMv8 peripherals.
520-
#[cfg(all(feature = "_rp235x", not(armv8m)))]
520+
#[cfg(test)]
521521
#[inline(always)]
522-
fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> {
522+
fn install_stack_guard(_stack_bottom: *mut usize) -> Result<(), ()> {
523523
Ok(())
524524
}
525525

0 commit comments

Comments
 (0)