#no-std #embedded #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

#241 in Embedded development

Download history 780/week @ 2022-08-11 516/week @ 2022-08-18 412/week @ 2022-08-25 823/week @ 2022-09-01 464/week @ 2022-09-08 380/week @ 2022-09-15 664/week @ 2022-09-22 602/week @ 2022-09-29 801/week @ 2022-10-06 788/week @ 2022-10-13 626/week @ 2022-10-20 1041/week @ 2022-10-27 811/week @ 2022-11-03 1082/week @ 2022-11-10 855/week @ 2022-11-17 332/week @ 2022-11-24

3,346 downloads per month
Used in 22 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

~425KB