pub fn usb_with_reset<M>(
        regs: USB_FS,
        apb1: &mut rcc::APB1,
        clocks: &rcc::Clocks,
        moder: &mut gpioa::MODER,
        otyper: &mut gpioa::OTYPER,
        pa12: gpioa::PA12<M>,
    ) -> UsbBusAllocator<Self> {
        UsbBus::new(
            regs,
            apb1,
            Some(Reset {
                delay: clocks.sysclk().0,
                pin: Mutex::new(RefCell::new(pa12.into_push_pull_output(moder, otyper))),
            }),
        )
    }
/// Constructs a new USB peripheral driver with the "reset" method enabled.
Constructs a new USB peripheral driver with the "reset" method enabled.
Constructs a new USB peripheral driver with the " reset " method enabled .
pub fn usb_with_reset<M>(
        regs: USB_FS,
        apb1: &mut rcc::APB1,
        clocks: &rcc::Clocks,
        moder: &mut gpioa::MODER,
        otyper: &mut gpioa::OTYPER,
        pa12: gpioa::PA12<M>,
    ) -> UsbBusAllocator<Self> {
        UsbBus::new(
            regs,
            apb1,
            Some(Reset {
                delay: clocks.sysclk().0,
                pin: Mutex::new(RefCell::new(pa12.into_push_pull_output(moder, otyper))),
            }),
        )
    }
pub fn usb_with_reset < M > ( regs : USB_FS , apb1 : & mut rcc :: APB1 , clocks : & rcc :: Clocks , moder : & mut gpioa :: MODER , otyper : & mut gpioa :: OTYPER , pa12 : gpioa :: PA12 < M > , ) -> UsbBusAllocator < Self > { UsbBus :: new ( regs , apb1 , Some ( Reset { delay : clocks . sysclk ( ) . 0 , pin : Mutex :: new ( RefCell :: new ( pa12 . into_push_pull_output ( moder , otyper ) ) ) , } ) , ) }
Constructs a new USB peripheral driver with the "reset" method enabled.
Constructs a new USB peripheral driver with the " reset " method enabled .
regs
USB_FS
apb1
&mut rcc::APB1
clocks
&rcc::Clocks
moder
&mut gpioa::MODER
otyper
&mut gpioa::OTYPER
pa12
gpioa::PA12<M>
regs
USB_FS
apb1
&mut rcc::APB1
clocks
&rcc::Clocks
moder
&mut gpioa::MODER
otyper
&mut gpioa::OTYPER
pa12
gpioa::PA12<M>