diff options
Diffstat (limited to 'embassy-nrf/src/lib.rs')
| -rw-r--r-- | embassy-nrf/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 716eec961..1b7fb7e7f 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #![no_std] | 1 | #![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-nrf'>browse the `embassy-nrf` documentation on the Embassy website</a> instead.</p><p>The documentation here on `docs.rs` is built for a single chip only (nRF52840 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-nrf'>browse the `embassy-nrf` documentation on the Embassy website</a> instead.</p><p>The documentation here on `docs.rs` is built for a single chip only (nRF52840 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" |
| @@ -252,7 +253,7 @@ macro_rules! bind_interrupts { | |||
| 252 | 253 | ||
| 253 | $( | 254 | $( |
| 254 | #[allow(non_snake_case)] | 255 | #[allow(non_snake_case)] |
| 255 | #[no_mangle] | 256 | #[unsafe(no_mangle)] |
| 256 | $(#[cfg($cond_irq)])? | 257 | $(#[cfg($cond_irq)])? |
| 257 | unsafe extern "C" fn $irq() { | 258 | unsafe extern "C" fn $irq() { |
| 258 | unsafe { | 259 | unsafe { |
| @@ -284,7 +285,7 @@ macro_rules! bind_interrupts { | |||
| 284 | pub use chip::pac; | 285 | pub use chip::pac; |
| 285 | #[cfg(not(feature = "unstable-pac"))] | 286 | #[cfg(not(feature = "unstable-pac"))] |
| 286 | pub(crate) use chip::pac; | 287 | pub(crate) use chip::pac; |
| 287 | pub use chip::{peripherals, Peripherals, EASY_DMA_SIZE}; | 288 | pub use chip::{EASY_DMA_SIZE, Peripherals, peripherals}; |
| 288 | pub use embassy_hal_internal::{Peri, PeripheralType}; | 289 | pub use embassy_hal_internal::{Peri, PeripheralType}; |
| 289 | 290 | ||
| 290 | pub use crate::chip::interrupt; | 291 | pub use crate::chip::interrupt; |
