#usb #usb-serial #embedded #embedded-devices

no-std stm32-usbd

'usb-device' implementation for STM32 microcontrollers

12 releases (6 breaking)

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

#343 in Hardware support

Download history 646/week @ 2024-07-20 729/week @ 2024-07-27 632/week @ 2024-08-03 733/week @ 2024-08-10 597/week @ 2024-08-17 561/week @ 2024-08-24 593/week @ 2024-08-31 562/week @ 2024-09-07 723/week @ 2024-09-14 926/week @ 2024-09-21 516/week @ 2024-09-28 481/week @ 2024-10-05 384/week @ 2024-10-12 396/week @ 2024-10-19 498/week @ 2024-10-26 334/week @ 2024-11-02

1,657 downloads per month
Used in 29 crates (12 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

Example applications may be found in the individual device HALs:

Dependencies

~2MB
~36K SLoC