Skip to content

Commit

Permalink
Merge pull request #885 from cr1901/make-mod-inner-fix
Browse files Browse the repository at this point in the history
Do not emit inner attributes for MSP430 with make_mod option active.
  • Loading branch information
burrbull authored Nov 11, 2024
2 parents bb9a5c7 + a371c1e commit 74eee32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

- Fix MSP430 PAC inner attribute generation when used with the `-m` switch.

## [v0.34.0] - 2024-11-05

- Revert #711
Expand Down
3 changes: 2 additions & 1 deletion src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
None => None,
};

if config.target == Target::Msp430 {
// make_mod option explicitly disables inner attributes.
if config.target == Target::Msp430 && !config.make_mod {
out.extend(quote! {
#![feature(abi_msp430_interrupt)]
});
Expand Down

0 comments on commit 74eee32

Please sign in to comment.