Merge pull request #207 from lulf/clock-init

Enable clock by default for stm32l0
This commit is contained in:
Dario Nieuwenhuis
2021-05-27 13:36:14 +02:00
committed by GitHub
6 changed files with 551 additions and 17 deletions

View File

@ -47,6 +47,13 @@ pub struct Config {
rcc: rcc::Config,
}
impl Config {
pub fn rcc(mut self, rcc: rcc::Config) -> Self {
self.rcc = rcc;
self
}
}
impl Default for Config {
fn default() -> Self {
Self {