ht32f1yyy

Crates.ioht32f1yyy
lib.rsht32f1yyy
version0.2.0
sourcesrc
created_at2020-05-26 08:02:29.33828
updated_at2023-06-17 12:57:03.894667
descriptionDevice support crates for HT32F1YYY devices
homepage
repositoryhttps://github.com/ht32-rs/ht32-rs
max_upload_size
id246000
size10,312,354
Jonas Spanoghe (jspngh)

documentation

README

IS THIS THE CRATE I AM SEARCHING FOR

Note that Holtek has 2 chip naming regulations, one with 4 digits, the other with 5. Crates that are generated for 4 digits ones have a naming scheme like HT32F1yyy, the ones for 5 digits HT32F1xxxx. You should make sure this is the crate you are searching for.

ht32f1yyy

This crate provides an autogenerated API for access to HT32F1YYY peripherals. The API is generated using svd2rust with patched svd files containing extensive type-safe support. For more information please see the main repo.

Refer to the documentation for full details.

Usage

Each device supported by this crate is behind a feature gate so that you only compile the device(s) you want. To use, in your Cargo.toml:

[dependencies.ht32f1yyy]
version = "0.2.0"
features = ["ht32f125x", "rt"]

The rt feature is optional and brings in support for cortex-m-rt.

In your code:

use ht32f1yyy::ht32f125x;

let mut peripherals = ht32f125x::Peripherals::take().unwrap();
let gpioa = &peripherals.GPIOA;
gpioa.odr.modify(|_, w| w.odr0().set_bit());

For full details on the autogenerated API, please see: https://docs.rs/svd2rust/0.29.0/svd2rust/#peripheral-api

Supported Devices

Module Devices Links
ht32f125x TODO TODO, st.com
ht32f1653_54 TODO TODO, st.com
ht32f1655_56 TODO TODO, st.com
ht32f175x TODO TODO, st.com
Commit count: 54

cargo fmt