diff options
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. |
