Skip to content

Commit 41f1908

Browse files
bors[bot]rnestler
andcommitted
Merge #261
261: Only export Interrupt as interrupt when 'rt' is enabled r=japaric a=rnestler It only makes sense to export interrupt if the interrupt! macro is exported as well, since it's the only thing using it. Fixes #260 Co-authored-by: Raphael Nestler <raphael.nestler@gmail.com>
2 parents 51d76e6 + 93b6081 commit 41f1908

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)