aboutsummaryrefslogtreecommitdiff
path: root/embassy-nxp/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nxp/src/lib.rs')
-rw-r--r--embassy-nxp/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-nxp/src/lib.rs b/embassy-nxp/src/lib.rs
index f0f0afb6c..9576f02b1 100644
--- a/embassy-nxp/src/lib.rs
+++ b/embassy-nxp/src/lib.rs
@@ -1,4 +1,5 @@
1#![no_std] 1#![no_std]
2#![allow(unsafe_op_in_unsafe_fn)]
2 3
3// This mod MUST go first, so that the others see its macros. 4// This mod MUST go first, so that the others see its macros.
4pub(crate) mod fmt; 5pub(crate) mod fmt;
@@ -29,7 +30,7 @@ pub use chip::interrupt;
29pub use chip::pac; 30pub use chip::pac;
30#[cfg(not(feature = "unstable-pac"))] 31#[cfg(not(feature = "unstable-pac"))]
31pub(crate) use chip::pac; 32pub(crate) use chip::pac;
32pub use chip::{peripherals, Peripherals}; 33pub use chip::{Peripherals, peripherals};
33pub use embassy_hal_internal::{Peri, PeripheralType}; 34pub use embassy_hal_internal::{Peri, PeripheralType};
34 35
35/// Macro to bind interrupts to handlers. 36/// Macro to bind interrupts to handlers.
@@ -67,7 +68,7 @@ macro_rules! bind_interrupts {
67 68
68 $( 69 $(
69 #[allow(non_snake_case)] 70 #[allow(non_snake_case)]
70 #[no_mangle] 71 #[unsafe(no_mangle)]
71 $(#[cfg($cond_irq)])? 72 $(#[cfg($cond_irq)])?
72 unsafe extern "C" fn $irq() { 73 unsafe extern "C" fn $irq() {
73 unsafe { 74 unsafe {