Merge pull request #344 from bobmcwhirter/remove_builders

Remove builders from Config(s) and examples.
This commit is contained in:
Dario Nieuwenhuis
2021-08-04 21:32:39 +02:00
committed by GitHub
9 changed files with 37 additions and 133 deletions

View File

@ -65,14 +65,7 @@ pub use generated::{peripherals, Peripherals};
#[non_exhaustive]
pub struct Config {
rcc: rcc::Config,
}
impl Config {
pub fn rcc(mut self, rcc: rcc::Config) -> Self {
self.rcc = rcc;
self
}
pub rcc: rcc::Config,
}
impl Default for Config {