Module stm32_hal2::usb[][src]

Expand description

USB support, including for simulated COM ports. This module is a thin wrapper required to work with the usbd crate. Requires the usb feature. Only used on F303, L4x2, and L4x3. Other families that use USB use the usb_otg module.

Structs

Peripheral

USB Peripheral

UsbBus

USB peripheral driver for STM32 microcontrollers.

Functions

enable_usb_pwr

Enables the Vdd USB power supply. Note that we also need to enable PWREN in APB1, but we handle this using the RTC setup. Use a raw pointer if doing this without the RTC already set up.

Type Definitions

UsbBusType

Type of the UsbBus