diff options
| author | Caleb Jamison <[email protected]> | 2024-08-12 05:06:59 -0400 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-08-12 05:06:59 -0400 |
| commit | 752fbc662a43b677b7ffb7672b01772b28ff4e1f (patch) | |
| tree | d114a605b5a2a5736af34b728e48ee2960285571 | |
| parent | 778241fd71b8a0cb541d23b69c3f9e47ec2753ff (diff) | |
Fix docs, ci
| -rw-r--r-- | embassy-rp/src/clocks.rs | 2 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 6 |
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)] |
| 502 | fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { | 502 | fn 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)] |
| 522 | fn install_stack_guard(stack_bottom: *mut usize) -> Result<(), ()> { | 522 | fn install_stack_guard(_stack_bottom: *mut usize) -> Result<(), ()> { |
| 523 | Ok(()) | 523 | Ok(()) |
| 524 | } | 524 | } |
| 525 | 525 | ||
