-
Notifications
You must be signed in to change notification settings - Fork 157
Rework Interrupt
enum for MSP430
#460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @burrbull (rust_highfive has picked a reviewer for you, use r? to override) |
CC @cr1901 |
@therealprof Unable to test right now... it looks fine to me. Since However, this doesn't affect the public API and it's an impl detail that |
Since the generated PACs don't depend on |
r? @adamgreig |
src/generate/interrupt.rs
Outdated
@@ -176,7 +189,7 @@ pub fn render( | |||
} | |||
}; | |||
|
|||
if target == Target::CortexM || target == Target::Msp430 { | |||
if target == Target::CortexM { | |||
root.extend(interrupt_enum); | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this else
branch still trigger, causing #interrupt_enum
to end up in mod_items
along with the try_from
impl etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I wonder why this didn't cause any CI problems...
This also removes the `bare-metal` dependency from PACs created for MSP430, as requested in #455 (comment) Signed-off-by: Daniel Egger <[email protected]>
7c16a62
to
1512a6f
Compare
@adamgreig Are we good to go now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
This also removes the
bare-metal
dependency from PACs created forMSP430, as requested in
#455 (comment)
Signed-off-by: Daniel Egger [email protected]