pub unsafe fn init() {
    let gpioc = peripheral::gpioc_mut();
    let rcc = peripheral::rcc_mut();

    // RCC: Enable GPIOC
    rcc.ahbenr.modify(|_, w| w.iopcen(true));

    // GPIOC: Configure pins 8-9 as outputs
    gpioc.moder.modify(|_, w| {
        w.moder8(0b01)
            .moder9(0b01)
    });
}
/// Initializes the necessary stuff to drive the LEDs on and off
///
/// # Safety
///
/// - Must be called once
/// - Must be called in an interrupt-free environment
Initializes the necessary stuff to drive the LEDs on and off
Initializes the necessary stuff to drive the LEDs on and off
pub unsafe fn init() {
    let gpioc = peripheral::gpioc_mut();
    let rcc = peripheral::rcc_mut();
    // RCC: Enable GPIOC
    rcc.ahbenr.modify(|_, w| w.iopcen(true));
    // GPIOC: Configure pins 8-9 as outputs
    gpioc.moder.modify(|_, w| {
        w.moder8(0b01)
            .moder9(0b01)
    });
}
pub unsafe fn init ( ) { let gpioc = peripheral :: gpioc_mut ( ) ; let rcc = peripheral :: rcc_mut ( ) ; // RCC: Enable GPIOC rcc . ahbenr . modify ( | _ , w | w . iopcen ( true ) ) ; // GPIOC: Configure pins 8-9 as outputs gpioc . moder . modify ( | _ , w | { w . moder8 ( 0b01 ) . moder9 ( 0b01 ) } ) ; }
Initializes the necessary stuff to drive the LEDs on and off
Initializes the necessary stuff to drive the LEDs on and off
safety
Must be called once
Must be called in an interrupt-free environment
Must be called once Must be called in an interrupt - free environment