ht32-usbd

Crates.ioht32-usbd
lib.rsht32-usbd
version0.1.1
sourcesrc
created_at2023-06-18 05:49:56.416145
updated_at2024-01-12 20:59:47.682257
description'usb-device' implementation for HT32 microcontrollers
homepage
repositoryhttps://github.com/ht32-rs/ht32-usbd
max_upload_size
id893278
size110,406
Jonas Spanoghe (jspngh)

documentation

README

ht32-usbd

usb-device implementation for Holtek HT32 microcontrollers.

This project is heavily inspired by the stm32-usbd reference implementation.

It has been primarily developed for, and tested with, the HT32F1yyy family of chips, but should also work with other Holtek chips that use the same USB peripheral.

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.

Note that, besides including this library, it is also necessary to make sure that the USB peripheral is enabled, the USB clock has the right frequency (48MHz) and the backup domain is accessible.

Examples

See the ht32f1yyy-hal repo for an example of how to use this library.

Commit count: 4

cargo fmt