pub fn new(
        ltdc: LTDC,
        ltdc_rec: rec::Ltdc,
        core_clocks: &CoreClocks,
    ) -> Self {
        // See Errata ES0445 Rev 1 Section 2.6.1
        let lcd_clock =
            core_clocks.pll3_r_ck().expect("PLL3 R clock must run!").0;

        // Enable peripheral
        ltdc_rec.enable().reset();

        Ltdc {
            ltdc,
            config: None,
            lcd_clock,
        }
    }
/// New Ltdc. Reset and Enable LTDC block.
///
/// # Panics
///
/// Panics if the pixel clock LCD_CLK is running. The LCD_CLK is
/// necessary to ensure method calls do not stall the APB bus.
New Ltdc. Reset and Enable LTDC block.
New Ltdc . Reset and Enable LTDC block .
pub fn new(
        ltdc: LTDC,
        ltdc_rec: rec::Ltdc,
        core_clocks: &CoreClocks,
    ) -> Self {
        // See Errata ES0445 Rev 1 Section 2.6.1
        let lcd_clock =
            core_clocks.pll3_r_ck().expect("PLL3 R clock must run!").0;
        // Enable peripheral
        ltdc_rec.enable().reset();
        Ltdc {
            ltdc,
            config: None,
            lcd_clock,
        }
    }
pub fn new ( ltdc : LTDC , ltdc_rec : rec :: Ltdc , core_clocks : & CoreClocks , ) -> Self { // See Errata ES0445 Rev 1 Section 2.6.1 let lcd_clock = core_clocks . pll3_r_ck ( ) . expect ( " " ) . 0 ; // Enable peripheral ltdc_rec . enable ( ) . reset ( ) ; Ltdc { ltdc , config : None , lcd_clock , } }
New Ltdc.
New Ltdc .
ltdc
LTDC
ltdc_rec
rec::Ltdc
core_clocks
&CoreClocks
ltdc
LTDC
ltdc_rec
rec::Ltdc
core_clocks
&CoreClocks
panics
Panics if the pixel clock LCD_CLK is running. The LCD_CLK is
necessary to ensure method calls do not stall the APB bus.
Panics if the pixel clock LCD_CLK is running . The LCD_CLK is necessary to ensure method calls do not stall the APB bus .