Add a way to enable more features of the STM32L0 RCC

Add ability to enable the hsi48 clock. Code modified from the STM32L0XX
hal
This commit is contained in:
Ulf Lilleengen
2021-06-02 14:28:33 +02:00
parent 56ff8ebbd7
commit 4863d5e01e
2 changed files with 71 additions and 41 deletions

View File

@ -10,7 +10,6 @@ use embassy::time::{Clock as EmbassyClock, TICKS_PER_SECOND};
use crate::interrupt::{CriticalSection, Interrupt, Mutex};
use crate::pac::timer::TimGp16;
use crate::rcc::get_freqs;
use crate::time::Hertz;
// Clock timekeeping works with something we call "periods", which are time intervals