From a2da2a6db2e2bbef6d1031dd7a8461e5643ba711 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 14 Jun 2021 10:49:47 +0200 Subject: [PATCH] Remove unused l0 code --- embassy-stm32/src/rcc/l0/mod.rs | 48 --------------------------------- 1 file changed, 48 deletions(-) diff --git a/embassy-stm32/src/rcc/l0/mod.rs b/embassy-stm32/src/rcc/l0/mod.rs index 8f056d51..ce9c5865 100644 --- a/embassy-stm32/src/rcc/l0/mod.rs +++ b/embassy-stm32/src/rcc/l0/mod.rs @@ -168,18 +168,6 @@ impl<'d> Rcc<'d> { unsafe { get_freqs() } } - /* - pub fn enable_lse(&mut self, _: &PWR) -> LSE { - self.rb.csr.modify(|_, w| { - // Enable LSE clock - w.lseon().set_bit() - }); - while self.rb.csr.read().lserdy().bit_is_clear() {} - LSE(()) - } - } - */ - pub fn enable_debug_wfe(&mut self, _dbg: &mut peripherals::DBGMCU, enable_dma: bool) { // NOTE(unsafe) We have exclusive access to the RCC and DBGMCU unsafe { @@ -239,30 +227,6 @@ impl<'d> Rcc<'d> { HSI48(()) } } -/* - -impl Rcc { - /// Configure MCO (Microcontroller Clock Output). - pub fn configure_mco

( - &mut self, - source: MCOSEL_A, - prescaler: MCOPRE_A, - output_pin: P, - ) -> MCOEnabled - where - P: mco::Pin, - { - output_pin.into_mco(); - - self.rb.cfgr.modify(|_, w| { - w.mcosel().variant(source); - w.mcopre().variant(prescaler) - }); - - MCOEnabled(()) - } -} -*/ /// Extension trait that freezes the `RCC` peripheral with provided clocks configuration pub trait RccExt { @@ -424,18 +388,6 @@ impl RccExt for RCC { #[derive(Clone, Copy)] pub struct HSI48(()); -/// Token that exists only if MCO (Microcontroller Clock Out) has been enabled. -/// -/// You can get an instance of this struct by calling [`Rcc::configure_mco`]. -#[derive(Clone, Copy)] -pub struct MCOEnabled(()); - -/// Token that exists only, if the LSE clock has been enabled -/// -/// You can get an instance of this struct by calling [`Rcc::enable_lse`]. -#[derive(Clone, Copy)] -pub struct LSE(()); - pub unsafe fn init(config: Config) { let rcc = pac::RCC; rcc.iopenr().write(|w| {