aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-mspm0/src')
-rw-r--r--embassy-mspm0/src/gpio.rs6
-rw-r--r--embassy-mspm0/src/lib.rs3
2 files changed, 5 insertions, 4 deletions
diff --git a/embassy-mspm0/src/gpio.rs b/embassy-mspm0/src/gpio.rs
index d5fd36dbf..4668262a9 100644
--- a/embassy-mspm0/src/gpio.rs
+++ b/embassy-mspm0/src/gpio.rs
@@ -1125,14 +1125,14 @@ fn GPIOB() {
1125// Defining these as no_mangle is required so that the linker will pick these over the default handler. 1125// Defining these as no_mangle is required so that the linker will pick these over the default handler.
1126 1126
1127#[cfg(all(feature = "rt", not(any(mspm0c110x, mspm0c1105_c1106, mspm0l110x))))] 1127#[cfg(all(feature = "rt", not(any(mspm0c110x, mspm0c1105_c1106, mspm0l110x))))]
1128#[no_mangle] 1128#[unsafe(no_mangle)]
1129#[allow(non_snake_case)] 1129#[allow(non_snake_case)]
1130fn GPIOA() { 1130fn GPIOA() {
1131 irq_handler(pac::GPIOA, &PORTA_WAKERS); 1131 irq_handler(pac::GPIOA, &PORTA_WAKERS);
1132} 1132}
1133 1133
1134#[cfg(all(feature = "rt", gpio_pb, not(mspm0c1105_c1106)))] 1134#[cfg(all(feature = "rt", gpio_pb, not(mspm0c1105_c1106)))]
1135#[no_mangle] 1135#[unsafe(no_mangle)]
1136#[allow(non_snake_case)] 1136#[allow(non_snake_case)]
1137fn GPIOB() { 1137fn GPIOB() {
1138 irq_handler(pac::GPIOB, &PORTB_WAKERS); 1138 irq_handler(pac::GPIOB, &PORTB_WAKERS);
@@ -1140,7 +1140,7 @@ fn GPIOB() {
1140 1140
1141#[cfg(all(feature = "rt", gpio_pc))] 1141#[cfg(all(feature = "rt", gpio_pc))]
1142#[allow(non_snake_case)] 1142#[allow(non_snake_case)]
1143#[no_mangle] 1143#[unsafe(no_mangle)]
1144fn GPIOC() { 1144fn GPIOC() {
1145 irq_handler(pac::GPIOC, &PORTC_WAKERS); 1145 irq_handler(pac::GPIOC, &PORTC_WAKERS);
1146} 1146}
diff --git a/embassy-mspm0/src/lib.rs b/embassy-mspm0/src/lib.rs
index 13f0ce662..06938c21d 100644
--- a/embassy-mspm0/src/lib.rs
+++ b/embassy-mspm0/src/lib.rs
@@ -1,4 +1,5 @@
1#![no_std] 1#![no_std]
2#![allow(unsafe_op_in_unsafe_fn)]
2// Doc feature labels can be tested locally by running RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc 3// Doc feature labels can be tested locally by running RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc
3#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide), doc(cfg_hide(doc, docsrs)))] 4#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg_hide), doc(cfg_hide(doc, docsrs)))]
4#![cfg_attr( 5#![cfg_attr(
@@ -111,7 +112,7 @@ macro_rules! bind_interrupts {
111 112
112 $( 113 $(
113 #[allow(non_snake_case)] 114 #[allow(non_snake_case)]
114 #[no_mangle] 115 #[unsafe(no_mangle)]
115 $(#[cfg($cond_irq)])? 116 $(#[cfg($cond_irq)])?
116 unsafe extern "C" fn $irq() { 117 unsafe extern "C" fn $irq() {
117 unsafe { 118 unsafe {