Skip to content

Commit 131071a

Browse files
author
Brandon Matthews
committed
Exclude unused import and elide nvic::request for armv6m
1 parent a0e329d commit 131071a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/peripheral/nvic.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Nested Vector Interrupt Controller
22
33
#[cfg(not(armv6m))]
4-
use volatile_register::RO;
5-
use volatile_register::{RW, WO};
4+
use volatile_register::{RO, WO};
5+
use volatile_register::RW;
66

77
use interrupt::Nr;
88
use peripheral::NVIC;
@@ -78,6 +78,7 @@ pub struct RegisterBlock {
7878
}
7979

8080
impl NVIC {
81+
#[cfg(not(armv6m))]
8182
/// Request an IRQ in software
8283
///
8384
/// Writing a value to the INTID field is the same as manually pending an interrupt by setting

0 commit comments

Comments
 (0)