Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmsyn/jh71xx-pac
Peripheral access crate for JH71xx-based devices
https://github.com/rmsyn/jh71xx-pac
Last synced: about 1 month ago
JSON representation
Peripheral access crate for JH71xx-based devices
- Host: GitHub
- URL: https://github.com/rmsyn/jh71xx-pac
- Owner: rmsyn
- License: other
- Archived: true
- Created: 2023-09-10T03:27:36.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-19T00:18:45.000Z (3 months ago)
- Last Synced: 2024-04-19T03:20:44.225Z (2 months ago)
- Language: Rust
- Size: 2.04 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-embedded-rust - `j71xx-pac` - svd2rust generated interface to StarFive [JH71xx](https://www.starfivetech.com/en/site/soc) MCUs - ![crates.io](https://img.shields.io/crates/v/jh71xx-pac.svg) (Peripheral Access Crates / StarFive)
- awesome-embedded-rust - `j71xx-pac` - svd2rust generated interface to StarFive [JH71xx](https://www.starfivetech.com/en/site/soc) MCUs - ![crates.io](https://img.shields.io/crates/v/jh71xx-pac.svg) (Peripheral Access Crates / StarFive)
README
[![crates.io](https://img.shields.io/crates/d/jh71xx-pac.svg)](https://crates.io/crates/jh71xx-pac)
[![crates.io](https://img.shields.io/crates/v/jh71xx-pac.svg)](https://crates.io/crates/jh71xx-pac)
![Build Status](https://codeberg.org/weathered-steel/jh71xx-pac/workflows/CI/badge.svg)# JH71xx Peripheral Access Crate
**NOTE** Development has moved to Codeberg:
Low-level access crates for JH71xx-based SoCs. Currently, only the JH7110 SoC is supported.
The JH7100 SoC is discontinued, and the next SoC in the JH-series will be the JH8110.
**WARNING** This crate is in the very earliest stages of development. SVD files used to generate the Rust code are partially hand-crafted from referencing the [JH7110 Technical Reference Manual, preliminary release V2](https://doc-en.rvspace.org/JH7110/PDF/JH7110_TRM_StarFive_Preliminary_V2.pdf). Any mistakes are my own, and reviews/contributions are welcome.
## Generating Rust Code from SVD
Code generation uses a modified fork of the `cmsis-svd-generator` tool from SiFive, with patches to generate StarFive peripherals.
Until changes are upstreamed, a development revision can be cloned from [rmsyn/cmsis-svd-generator#dev](https://github.com/rmsyn/cmsis-svd-generator/tree/dev). The tool requires [pydevicetree](https://pypi.org/project/pydevicetree/) to be installed in your python environment.
### Requirements:
- cargo-fmt
- pydevicetree
- svd2rustTo regenerate/update the Rust code:
```bash
./scripts/regen.sh
```