Skip to content

Commit 19846ba

Browse files
committed
Support cortex-m-rt 0.7.0
1 parent ab2854f commit 19846ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ targets = ["thumbv7em-none-eabihf"]
2828
embedded-hal = "0.2.4"
2929
embedded-dma = "0.1.2"
3030
cortex-m = "^0.7.1"
31-
cortex-m-rt = "^0.6.15"
3231
stm32h7 = "^0.14.0"
3332
void = { version = "1.0.2", default-features = false }
3433
cast = { version = "0.2.3", default-features = false }
@@ -52,6 +51,7 @@ default-features = false
5251
optional = true
5352

5453
[dev-dependencies]
54+
cortex-m-rt = ">=0.6.15,<0.8"
5555
cortex-m-rtic = { version = "0.5.8", default-features = false, features = ["cortex-m-7"] }
5656
log = "0.4.11"
5757
panic-halt = "0.2.0"

examples/ethernet-nucleo-h743zi2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ fn SysTick() {
171171
}
172172

173173
#[exception]
174-
fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
174+
unsafe fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
175175
panic!("HardFault at {:#?}", ef);
176176
}
177177

178178
#[exception]
179-
fn DefaultHandler(irqn: i16) {
179+
unsafe fn DefaultHandler(irqn: i16) {
180180
panic!("Unhandled exception (IRQn = {})", irqn);
181181
}

examples/ethernet-stm32h747i-disco.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ fn ETH() {
137137
}
138138

139139
#[exception]
140-
fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
140+
unsafe fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
141141
panic!("HardFault at {:#?}", ef);
142142
}
143143

144144
#[exception]
145-
fn DefaultHandler(irqn: i16) {
145+
unsafe fn DefaultHandler(irqn: i16) {
146146
panic!("Unhandled exception (IRQn = {})", irqn);
147147
}

0 commit comments

Comments
 (0)