diff options
| author | maor1993 <[email protected]> | 2025-10-07 15:05:09 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-07 15:05:09 +0300 |
| commit | 04a36e9f62385fb4338908de66045f36fec664ea (patch) | |
| tree | 714fcc21114946e33b2be8eb6037bdc3dd9bb596 /embassy-hal-internal | |
| parent | cd91fe3b30dbb3d5b3c9c7d9e7cb151d721fb8d5 (diff) | |
| parent | 07016a4ffbe0b0ea689b83a6ddf19ab1b6a9a79a (diff) | |
Merge branch 'embassy-rs:main' into main
Diffstat (limited to 'embassy-hal-internal')
| -rw-r--r-- | embassy-hal-internal/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-hal-internal/src/interrupt.rs | 2 | ||||
| -rw-r--r-- | embassy-hal-internal/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-hal-internal/src/macros.rs | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/embassy-hal-internal/Cargo.toml b/embassy-hal-internal/Cargo.toml index 11dcc2466..c2e0bd30f 100644 --- a/embassy-hal-internal/Cargo.toml +++ b/embassy-hal-internal/Cargo.toml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-hal-internal" | 2 | name = "embassy-hal-internal" |
| 3 | version = "0.3.0" | 3 | version = "0.3.0" |
| 4 | edition = "2021" | 4 | edition = "2024" |
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | description = "Internal implementation details for Embassy HALs. DO NOT USE DIRECTLY." | 6 | description = "Internal implementation details for Embassy HALs. DO NOT USE DIRECTLY." |
| 7 | repository = "https://github.com/embassy-rs/embassy" | 7 | repository = "https://github.com/embassy-rs/embassy" |
diff --git a/embassy-hal-internal/src/interrupt.rs b/embassy-hal-internal/src/interrupt.rs index 5e64dce9d..ce6057e2d 100644 --- a/embassy-hal-internal/src/interrupt.rs +++ b/embassy-hal-internal/src/interrupt.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | //! Interrupt handling for cortex-m devices. | 1 | //! Interrupt handling for cortex-m devices. |
| 2 | use core::mem; | 2 | use core::mem; |
| 3 | use core::sync::atomic::{compiler_fence, Ordering}; | 3 | use core::sync::atomic::{Ordering, compiler_fence}; |
| 4 | 4 | ||
| 5 | use cortex_m::interrupt::InterruptNumber; | 5 | use cortex_m::interrupt::InterruptNumber; |
| 6 | use cortex_m::peripheral::NVIC; | 6 | use cortex_m::peripheral::NVIC; |
diff --git a/embassy-hal-internal/src/lib.rs b/embassy-hal-internal/src/lib.rs index 7addb71e2..729f97f0c 100644 --- a/embassy-hal-internal/src/lib.rs +++ b/embassy-hal-internal/src/lib.rs | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![allow(clippy::new_without_default)] | 2 | #![allow(clippy::new_without_default)] |
| 3 | #![allow(unsafe_op_in_unsafe_fn)] | ||
| 3 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
| 4 | #![warn(missing_docs)] | 5 | #![warn(missing_docs)] |
| 5 | 6 | ||
diff --git a/embassy-hal-internal/src/macros.rs b/embassy-hal-internal/src/macros.rs index ce72ded5c..0fcca2baf 100644 --- a/embassy-hal-internal/src/macros.rs +++ b/embassy-hal-internal/src/macros.rs | |||
| @@ -58,7 +58,7 @@ macro_rules! peripherals_struct { | |||
| 58 | ///Returns all the peripherals *once* | 58 | ///Returns all the peripherals *once* |
| 59 | #[inline] | 59 | #[inline] |
| 60 | pub(crate) fn take_with_cs(_cs: critical_section::CriticalSection) -> Self { | 60 | pub(crate) fn take_with_cs(_cs: critical_section::CriticalSection) -> Self { |
| 61 | #[no_mangle] | 61 | #[unsafe(no_mangle)] |
| 62 | static mut _EMBASSY_DEVICE_PERIPHERALS: bool = false; | 62 | static mut _EMBASSY_DEVICE_PERIPHERALS: bool = false; |
| 63 | 63 | ||
| 64 | // safety: OK because we're inside a CS. | 64 | // safety: OK because we're inside a CS. |
