Skip to content

Commit 2c5dce3

Browse files
committed
update dependency stm32f4xx-hal to 0.7
1 parent 10dbedc commit 2c5dce3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ features = [ "smoltcp-phy", "nucleo-f429zi" ]
2020
[dependencies]
2121
volatile-register = "0.2"
2222
aligned = "0.3"
23-
stm32f4xx-hal = "0.5"
23+
stm32f4xx-hal = "0.7"
2424

2525
smoltcp = { version = "0.6.0", default-features = false, features = ["proto-ipv4", "proto-ipv6", "socket-icmp", "socket-udp", "socket-tcp", "log", "verbose", "ethernet"], optional = true }
2626
log = { version = "0.4", optional = true }

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'rx, 'tx> Eth<'rx, 'tx> {
177177
/// [`eth_interrupt_handler()`](fn.eth_interrupt_handler.html) to
178178
/// clear interrupt pending bits. Otherwise the interrupt will
179179
/// reoccur immediately.
180-
pub fn enable_interrupt(&self, nvic: &mut NVIC) {
180+
pub fn enable_interrupt(&self) {
181181
self.eth_dma.dmaier.modify(|_, w|
182182
w
183183
// Normal interrupt summary enable
@@ -191,7 +191,9 @@ impl<'rx, 'tx> Eth<'rx, 'tx> {
191191
// Enable ethernet interrupts
192192
let interrupt = Interrupt::ETH;
193193

194-
nvic.enable(interrupt);
194+
unsafe {
195+
NVIC::unmask(interrupt);
196+
}
195197
}
196198

197199
/// Calls [`eth_interrupt_handler()`](fn.eth_interrupt_handler.html)

0 commit comments

Comments
 (0)