Remove unused l0 code
This commit is contained in:
parent
95532726b2
commit
a2da2a6db2
1 changed files with 0 additions and 48 deletions
|
@ -168,18 +168,6 @@ impl<'d> Rcc<'d> {
|
||||||
unsafe { get_freqs() }
|
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) {
|
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
|
// NOTE(unsafe) We have exclusive access to the RCC and DBGMCU
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -239,30 +227,6 @@ impl<'d> Rcc<'d> {
|
||||||
HSI48(())
|
HSI48(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
|
|
||||||
impl Rcc {
|
|
||||||
/// Configure MCO (Microcontroller Clock Output).
|
|
||||||
pub fn configure_mco<P>(
|
|
||||||
&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
|
/// Extension trait that freezes the `RCC` peripheral with provided clocks configuration
|
||||||
pub trait RccExt {
|
pub trait RccExt {
|
||||||
|
@ -424,18 +388,6 @@ impl RccExt for RCC {
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct HSI48(());
|
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) {
|
pub unsafe fn init(config: Config) {
|
||||||
let rcc = pac::RCC;
|
let rcc = pac::RCC;
|
||||||
rcc.iopenr().write(|w| {
|
rcc.iopenr().write(|w| {
|
||||||
|
|
Loading…
Reference in a new issue