diff options
Diffstat (limited to 'embassy-stm32/src/lib.rs')
| -rw-r--r-- | embassy-stm32/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 7e0f7884e..dbf0fe620 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #![cfg_attr(not(test), no_std)] | 1 | #![cfg_attr(not(test), no_std)] |
| 2 | #![allow(async_fn_in_trait)] | 2 | #![allow(async_fn_in_trait)] |
| 3 | #![allow(unsafe_op_in_unsafe_fn)] | ||
| 3 | #![cfg_attr( | 4 | #![cfg_attr( |
| 4 | docsrs, | 5 | docsrs, |
| 5 | doc = "<div style='padding:30px;background:#810;color:#fff;text-align:center;'><p>You might want to <a href='https://docs.embassy.dev/embassy-stm32'>browse the `embassy-stm32` documentation on the Embassy website</a> instead.</p><p>The documentation here on `docs.rs` is built for a single chip only (stm32h7, stm32h7rs55 in particular), while on the Embassy website you can pick your exact chip from the top menu. Available peripherals and their APIs change depending on the chip.</p></div>\n\n" | 6 | doc = "<div style='padding:30px;background:#810;color:#fff;text-align:center;'><p>You might want to <a href='https://docs.embassy.dev/embassy-stm32'>browse the `embassy-stm32` documentation on the Embassy website</a> instead.</p><p>The documentation here on `docs.rs` is built for a single chip only (stm32h7, stm32h7rs55 in particular), while on the Embassy website you can pick your exact chip from the top menu. Available peripherals and their APIs change depending on the chip.</p></div>\n\n" |
| @@ -194,7 +195,7 @@ macro_rules! bind_interrupts { | |||
| 194 | 195 | ||
| 195 | $( | 196 | $( |
| 196 | #[allow(non_snake_case)] | 197 | #[allow(non_snake_case)] |
| 197 | #[no_mangle] | 198 | #[unsafe(no_mangle)] |
| 198 | $(#[cfg($cond_irq)])? | 199 | $(#[cfg($cond_irq)])? |
| 199 | $(#[doc = $doc])* | 200 | $(#[doc = $doc])* |
| 200 | unsafe extern "C" fn $irq() { | 201 | unsafe extern "C" fn $irq() { |
| @@ -222,7 +223,7 @@ macro_rules! bind_interrupts { | |||
| 222 | } | 223 | } |
| 223 | 224 | ||
| 224 | // Reexports | 225 | // Reexports |
| 225 | pub use _generated::{peripherals, Peripherals}; | 226 | pub use _generated::{Peripherals, peripherals}; |
| 226 | pub use embassy_hal_internal::{Peri, PeripheralType}; | 227 | pub use embassy_hal_internal::{Peri, PeripheralType}; |
| 227 | #[cfg(feature = "unstable-pac")] | 228 | #[cfg(feature = "unstable-pac")] |
| 228 | pub use stm32_metapac as pac; | 229 | pub use stm32_metapac as pac; |
