https://github.com/xpl0itr/dp32g030-rs
Peripheral Access Crate for the DP32G030 microcontroller
https://github.com/xpl0itr/dp32g030-rs
dp32g030 embedded mcu pac rust
Last synced: 8 months ago
JSON representation
Peripheral Access Crate for the DP32G030 microcontroller
- Host: GitHub
- URL: https://github.com/xpl0itr/dp32g030-rs
- Owner: Xpl0itR
- License: mpl-2.0
- Created: 2024-07-22T16:37:57.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T02:22:27.000Z (almost 2 years ago)
- Last Synced: 2025-09-08T01:29:46.184Z (9 months ago)
- Topics: dp32g030, embedded, mcu, pac, rust
- Language: Rust
- Homepage: https://crates.io/crates/dp32g030
- Size: 28 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dp32g030
========
[](https://crates.io/crates/dp32g030)
Peripheral Access Crate for the DP32G030 microcontroller. The API is generated using [svd2rust](https://github.com/rust-embedded/svd2rust).
Usage
-----
In your `Cargo.toml` (features are optional):
```toml
[dependencies]
dp32g030 = { version = "1.0.0", features = ["critical-section", "defmt", "rt"] }
```
In your code:
```rust
use dp32g030;
let peripherals = dp32g030::Peripherals::take().unwrap();
```
Refer to the [svd2rust documentation](https://docs.rs/svd2rust) for further usage.
Credits
-------
- [amnemonic](https://github.com/amnemonic) for the original [svd](https://github.com/amnemonic/Quansheng_UV-K5_Firmware/blob/0255bca35f0f4d95bd67c3c4406af798e8a8a2df/hardware/DP32G030/DP32G030.svd) mine is extended from
- [itsme](https://github.com/itsme2417/) for assisting in enriching the svd with data from the datasheet
License
-------
This project is subject to the terms of the [Mozilla Public License, v. 2.0](./LICENSE).