Skip to content
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

Added init() function to stm32f4 crates #1836

Merged
merged 4 commits into from May 11, 2020

Conversation

alexandruradovici
Copy link
Contributor

Pull Request Overview

This pull request:

  1. adds an init function to the stm32f4 sub crates so that the object file is not ignored by the compiler and IRQS are included in the .irqs section
  2. moves the IRQS in the lib.rs file, they are ignored by the compiler otherwise

This fixes #1835.

It seems to be related to rust-lang/rust#56639.

Testing Strategy

This pull request was tested with a nucleo429zi board.

TODO or Help Wanted

Documentation Updated

  • updates are required.

Formatting

  • Ran make formatall.

hudson-ayers
hudson-ayers previously approved these changes May 8, 2020
Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this

@bradjc
Copy link
Contributor

bradjc commented May 8, 2020

Can we remove

pub use stm32f4xx;

as part of this as well? That would help add some level of enforcement to this.

@alexandruradovici
Copy link
Contributor Author

Done

chips/stm32f429zi/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Brad Campbell <bradjc5@gmail.com>
bradjc
bradjc previously approved these changes May 8, 2020
@bradjc bradjc added the last-call Final review period for a pull request. label May 8, 2020
hudson-ayers
hudson-ayers previously approved these changes May 9, 2020
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One quick doc fix, then gtg from me

chips/stm32f446re/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Pat Pannuto <pat.pannuto@gmail.com>
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented May 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
last-call Final review period for a pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kernel panic when running c_hello on nucleo429zi
4 participants