Crates.io | py32f0xx-hal |
lib.rs | py32f0xx-hal |
version | 0.1.1 |
source | src |
created_at | 2023-06-10 18:14:34.714184 |
updated_at | 2024-10-10 16:38:27.455381 |
description | Peripheral access API for py32F0 series microcontrollers |
homepage | |
repository | https://github.com/creatoy/py32f0xx-hal |
max_upload_size | |
id | 887014 |
size | 260,995 |
This repo is modified from stm32f0xx-hal
NOTE: The function is not fully tested, and you are responsible for any problems with the use of this repository.
Known issue: - I2C not work
py32f0xx-hal contains a hardware abstraction on top of the peripheral access API for the puyasemi PY32F0xx family of microcontrollers.
Collaboration on this crate is highly welcome, as are pull requests!
The examples
folder contains several example programs. To compile them, one must specify the target device as cargo feature:
$ cargo build --features=py32f002ax5 --example=blinky
To use py32f0xx-hal as a dependency in a standalone project the target device feature must be specified in the Cargo.toml
file:
[dependencies]
cortex-m = "0.7.7"
cortex-m-rt = "0.7.3"
py32f0xx-hal = { version = "0.1.0", features = ["py32f002ax5"]}
If you are unfamiliar with embedded development using Rust, there are a number of fantastic resources available to help.
The minimum supported Rust version is the latest stable release. Older versions may compile, especially when some features are not used in your application.
See CHANGELOG.md.
0-Clause BSD License, see LICENSE-0BSD.txt for more details.