diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-10-06 22:55:38 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-10-06 23:19:53 +0200 |
| commit | abc8e450f936567ad42cb34b5d2a7941b206aa5d (patch) | |
| tree | 57b8ec55ad4fc9048524f2899b34198c5a8e61df /embassy-hal-internal/src/macros.rs | |
| parent | e2a2bd3c573928208a4c85e7fcd6ad630f23f47d (diff) | |
Edition 2024.
Diffstat (limited to 'embassy-hal-internal/src/macros.rs')
| -rw-r--r-- | embassy-hal-internal/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
