Skip to content

Commit 93b6081

Browse files
committed
Only export Interrupt as interrupt when 'rt' is enabled
It only makes sense to export interrupt if the interrupt! macro is exported as well, since it's the only thing using it.
1 parent 51d76e6 commit 93b6081

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generate/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ pub fn render(d: &Device, target: &Target, nightly: bool, device_x: &mut String)
119119
pub use cortex_m::peripheral::Peripherals as CorePeripherals;
120120
#[cfg(feature = "rt")]
121121
pub use cortex_m_rt::interrupt;
122+
#[cfg(feature = "rt")]
122123
pub use self::Interrupt as interrupt;
123124
});
124125

0 commit comments

Comments
 (0)