aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cortex-m-rt/Cargo.toml6
-rw-r--r--cortex-m-rt/link.x.in1
-rw-r--r--cortex-m-rt/tests/compile-fail/duplicate-static.rs1
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-args.rs1
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs1
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs1
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-invalid.rs5
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-soundness.rs1
8 files changed, 14 insertions, 3 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml
index bb2dde9..df0158c 100644
--- a/cortex-m-rt/Cargo.toml
+++ b/cortex-m-rt/Cargo.toml
@@ -1,5 +1,9 @@
[package]
-authors = ["Jorge Aparicio <jorge@japaric.io>", "Hideki Sekine <sekineh@me.com>"]
+authors = [
+ "The Cortex-M Team <cortex-m@teams.rust-embedded.org>",
+ "Jorge Aparicio <jorge@japaric.io>",
+ "Hideki Sekine <sekineh@me.com>",
+]
categories = ["embedded", "no-std"]
description = "Minimal runtime / startup for Cortex-M microcontrollers"
documentation = "https://docs.rs/cortex-m-rt/"
diff --git a/cortex-m-rt/link.x.in b/cortex-m-rt/link.x.in
index dff43e0..f895e21 100644
--- a/cortex-m-rt/link.x.in
+++ b/cortex-m-rt/link.x.in
@@ -150,6 +150,7 @@ SECTIONS
{
/* Unused exception related info that only wastes space */
*(.ARM.exidx.*);
+ *(.ARM.extab.*);
}
}
diff --git a/cortex-m-rt/tests/compile-fail/duplicate-static.rs b/cortex-m-rt/tests/compile-fail/duplicate-static.rs
index fccb65f..eeb884f 100644
--- a/cortex-m-rt/tests/compile-fail/duplicate-static.rs
+++ b/cortex-m-rt/tests/compile-fail/duplicate-static.rs
@@ -6,6 +6,7 @@ extern crate panic_halt;
use cortex_m_rt::{entry, exception, interrupt};
+#[allow(non_camel_case_types)]
enum interrupt {
UART0,
}
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-args.rs b/cortex-m-rt/tests/compile-fail/interrupt-args.rs
index 9630ce1..1e06ec2 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-args.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-args.rs
@@ -11,6 +11,7 @@ fn foo() -> ! {
loop {}
}
+#[allow(non_camel_case_types)]
enum interrupt {
USART1,
}
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs
index c7e25b3..bd5ff9f 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs
@@ -11,6 +11,7 @@ fn foo() -> ! {
loop {}
}
+#[allow(non_camel_case_types)]
enum interrupt {
USART1,
}
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs
index ed5cbd4..56db222 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs
@@ -11,6 +11,7 @@ fn foo() -> ! {
loop {}
}
+#[allow(non_camel_case_types)]
enum interrupt {
USART1,
}
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
index 4e79e7d..9b1482a 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
@@ -11,11 +11,12 @@ fn foo() -> ! {
loop {}
}
+#[allow(non_camel_case_types)]
enum interrupt {
USART1,
}
// NOTE this looks a bit better when using a device crate:
// "no variant named `foo` found for type `stm32f30x::Interrupt` in the current scope"
-#[interrupt] //~ ERROR no variant named `foo` found for type `interrupt` in the current scope
-fn foo() {}
+#[interrupt]
+fn foo() {} //~ ERROR no variant named `foo` found for type `interrupt` in the current scope
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs
index b473a94..74e5e79 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs
@@ -11,6 +11,7 @@ fn foo() -> ! {
loop {}
}
+#[allow(non_camel_case_types)]
enum interrupt {
USART1,
USART2,