Skip to content

Start on new structure #123

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

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

Start on new structure #123

wants to merge 18 commits into from

Conversation

bifurcation
Copy link
Collaborator

This PR is a WIP aiming toward a "steel thread" blinky demo showing new structure for the project.

  • Move svd2rusty into an svdgen crate inside this project
  • Make a crate that has all of the stm32f405 specifics for that firmware
  • Call svdgen from build.rs
  • Port hal logic into for clock and GPIO
  • Add app logic that expects a button and an LED via a Board trait
  • Implement the Board trait using the hal GPIO tools
  • Port the main logic from the ui crate to instantiate the app and create a coherent firmware

_ => unreachable!("Invalid HSE clock frequency {hse_clk_freq}"),
};

// XXX(rlb): These fields are read-only (?)
Copy link
Collaborator

Choose a reason for hiding this comment

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

These are not needed by the STM32F405 - if they are written it is more or lest ignored - but they were use by the emulator to set up initial state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants