#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

#363 in Hardware support

Download history 572/week @ 2024-08-14 615/week @ 2024-08-21 473/week @ 2024-08-28 650/week @ 2024-09-04 735/week @ 2024-09-11 534/week @ 2024-09-18 886/week @ 2024-09-25 571/week @ 2024-10-02 334/week @ 2024-10-09 401/week @ 2024-10-16 459/week @ 2024-10-23 476/week @ 2024-10-30 273/week @ 2024-11-06 322/week @ 2024-11-13 468/week @ 2024-11-20 482/week @ 2024-11-27

1,609 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

~2.5MB
~37K SLoC