#no-std #usb

no-std stm32-usbd

'usb-device' implementation for STM32 microcontrollers

11 unstable releases

0.6.0 Mar 12, 2021
0.5.1 Feb 6, 2020
0.5.0 Nov 12, 2019
0.3.0 Jul 10, 2019

#835 in Embedded development

Download history 1090/week @ 2023-10-20 1038/week @ 2023-10-27 834/week @ 2023-11-03 701/week @ 2023-11-10 1216/week @ 2023-11-17 1767/week @ 2023-11-24 780/week @ 2023-12-01 1164/week @ 2023-12-08 1213/week @ 2023-12-15 936/week @ 2023-12-22 732/week @ 2023-12-29 1021/week @ 2024-01-05 1024/week @ 2024-01-12 1658/week @ 2024-01-19 1343/week @ 2024-01-26 548/week @ 2024-02-02

4,776 downloads per month
Used in 28 crates (11 directly)

MIT license

150KB
4.5K SLoC

crates.io crates.io Build Status

stm32-usbd

usb-device implementation for STM32 microcontrollers.

This project is a successor to the great work started by @mvirkkunen.

Supported microcontrollers

  • STM32F042xx
  • STM32F048xx
  • STM32F072xx
  • STM32F078xx
  • STM32F103xx
  • STM32F303xC
  • STM32L0x2xx
  • STM32L4x2xx
  • And others...

Usage

This driver is intended for use through a device hal library. Such hal library should implement UsbPeripheral for the corresponding USB peripheral object. This trait declares all the peripheral properties that may vary from one device family to the other.

Examples

See the stm32-usbd-examples repo for different device-specific examples.

See the hal example for the reference hal implementation.

Dependencies

~715KB