Skip to content

Universal Serial Bus (USB)

lbuild module: modm:platform:usb

This module is only available for stm32{f0,f1,f2,f3,f4,f7,g4,h7,l0,l1,l4,l5,u5}.



Filters the USB interrupts by port:

  • usb_irqs: All unfiltered USB interrupts
  • port_irqs: Filtered USB interrupts categorized by port: fs or hs.
  • is_remap: True when port_irqs contains remapped IRQs (specific to STM32F3)

Interrupts used by USB FS:

  • OTG_FS (no suffix)
  • USB
  • USBWakeUp (no suffix)
  • USB_LP* (any suffix)
  • USB_HP* (any suffix)

Interrupts used by USB HS:

  • OTG_HS (no suffix)

:returns: a dictionary of USB interrupt properties


modm:platform:usb modm_platform_usb modm: platform: usb modm_architecture_interrupt modm: architecture: interrupt modm_platform_usb->modm_architecture_interrupt modm_cmsis_device modm: cmsis: device modm_platform_usb->modm_cmsis_device modm_platform_gpio modm: platform: gpio modm_platform_usb->modm_platform_gpio modm_platform_rcc modm: platform: rcc modm_platform_usb->modm_platform_rcc

Limited availability: Check with 'lbuild discover' if this module is available for your target!