aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-mspm0')
-rw-r--r--embassy-mspm0/Cargo.toml2
-rw-r--r--embassy-mspm0/build.rs2
-rw-r--r--embassy-mspm0/src/gpio.rs6
-rw-r--r--embassy-mspm0/src/lib.rs3
4 files changed, 7 insertions, 6 deletions
diff --git a/embassy-mspm0/Cargo.toml b/embassy-mspm0/Cargo.toml
index 1b32c4d43..65019eb7c 100644
--- a/embassy-mspm0/Cargo.toml
+++ b/embassy-mspm0/Cargo.toml
@@ -1,7 +1,7 @@
1[package] 1[package]
2name = "embassy-mspm0" 2name = "embassy-mspm0"
3version = "0.1.0" 3version = "0.1.0"
4edition = "2021" 4edition = "2024"
5license = "MIT OR Apache-2.0" 5license = "MIT OR Apache-2.0"
6description = "Embassy Hardware Abstraction Layer (HAL) for Texas Instruments MSPM0 series microcontrollers" 6description = "Embassy Hardware Abstraction Layer (HAL) for Texas Instruments MSPM0 series microcontrollers"
7keywords = ["embedded", "async", "mspm0", "hal", "embedded-hal"] 7keywords = ["embedded", "async", "mspm0", "hal", "embedded-hal"]
diff --git a/embassy-mspm0/build.rs b/embassy-mspm0/build.rs
index d294bc422..93ea81ac3 100644
--- a/embassy-mspm0/build.rs
+++ b/embassy-mspm0/build.rs
@@ -208,7 +208,7 @@ fn generate_groups() -> TokenStream {
208 208
209 #[cfg(feature = "rt")] 209 #[cfg(feature = "rt")]
210 mod group_vectors { 210 mod group_vectors {
211 extern "Rust" { 211 unsafe extern "Rust" {
212 #(#group_vectors)* 212 #(#group_vectors)*
213 } 213 }
214 } 214 }
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 {