Skip to content

Commit 89b54e8

Browse files
committed
add re-export of mips_rt::interrupt for MIPS
1 parent 9cad274 commit 89b54e8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Parenthesizing `#offset_calc` to avoid clippy's warning of operator precedence
1414
- Replace suffix in fields' name before converting to snake case when generating methods #563
1515

16+
### Changed
17+
18+
- MIPS API now re-exports `mips_rt::interrupt` when the `rt` feature is enabled
19+
1620
## [v0.20.0] - 2021-12-07
1721

1822
### Fixed

src/generate/device.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
139139
});
140140
}
141141

142+
if config.target == Target::Mips {
143+
out.extend(quote! {
144+
#[cfg(feature = "rt")]
145+
pub use mips_rt::interrupt;
146+
});
147+
}
148+
142149
let generic_file = std::str::from_utf8(include_bytes!("generic.rs"))?;
143150
if config.generic_mod {
144151
let mut file = File::create(config.output_dir.join("generic.rs"))?;

0 commit comments

Comments
 (0)