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

Clean up serial module #161

Merged
merged 5 commits into from Nov 2, 2020
Merged

Clean up serial module #161

merged 5 commits into from Nov 2, 2020

Commits on Nov 2, 2020

  1. Clean up the way USART pins are defined

    Replaces the combinatorial explosion of the previous pin macro with a
    more targeted approach. The new macro implements one trait for each kind
    of pin. The `Pins` trait is then implemented using blanked
    implementations using the pin-traits.
    hannobraun committed Nov 2, 2020
    Copy the full SHA
    d29269a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    0fac052 View commit details
    Browse the repository at this point in the history
  3. Re-export pin types from gpio

    Now pins can be accessed using, for example, `crate::gpio::PA1` instead
    of `crate::gpio::gpioa::PA1`. The names are already unambigous, and not
    only can this make all imports slighly more convenient, it can also help
    cut down a lot on use statements required for macro-generated code.
    hannobraun committed Nov 2, 2020
    Copy the full SHA
    3d5d060 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    45cc12a View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    ccf4ce9 View commit details
    Browse the repository at this point in the history