duskmoon314 / aw-pac Goto Github PK
View Code? Open in Web Editor NEWPeripheral access API for Allwinner SoCs generated from unofficial SVD file
License: Apache License 2.0
Peripheral access API for Allwinner SoCs generated from unofficial SVD file
License: Apache License 2.0
Here are the peripherals I haven't added a detailed description of registers
After katyo/publish-crates used cargo metadata
to extract information, it seems unable to publish one package without checking the whole workspace.
Hi @duskmoon314
Google recently recommended this project to me when I was looking for the SVD allwinner D1.
I tried to do the same in relation to the manual v1.0 D1-H but had a issue during the extraction.
Do you have a script to extract the manual or is there another way?
how to call it ? thanks
22 | let p = pac::Peripherals::take().unwrap();
| ^^^^ `Peripherals` is not an iterator
|
::: /home/youngday/.cargo/registry/src/mirrors.ustc.edu.cn-12df342d903acd47/d1-pac-0.0.28/src/lib.rs:1751:1
|
1751 | pub struct Peripherals {
| ---------------------- doesn't satisfy `Peripherals: Iterator`
A number of versions of the riscv
crate have been yanked, causing issues when building the d1-pac
.
The dependency versions should be updated to riscv = "0.10.1"
and riscv-rt = "0.11.0"
.
Will the renovate bot do this automatically, or should I create a pull request for this?
Document of SPI_RXD:
This register can be accessed in the byte, half-word, or word unit by AHB. In the byte accessing method, if there are data in RXFIFO, the top word is returned and the RXFIFO depth is decreased by 1. In the half-word accessing method, two SPI bursts are returned and the RXFIFO depth is decreased by 2. In the word accessing method, the four SPI bursts are returned and the RXFIFO depth is decreased by 4.
These registers respond to different load (lb
, lh
and lw
) and store (sb
, sh
and sw
) instructions in different ways.
The 0.9.0 release of the riscv crate has been yanked:
https://crates.io/crates/riscv/0.9.0
aw-pac could just bump to the latest release, I think.
To support more SoC in a more convenient way, it is better to learn from stm32-rs. My goal is to organize the repo into the following structure:
svd
| peripherals/**.yaml # peripherals like uart, twi, etc.
| <soc>_unofficial.yaml # yaml for patching
| <soc>_unofficial.svd # patched yaml
<soc>-pac/ # crates' meta and generated codes
Allwinner has released the D1-H user manual v1.2/v1.3. Need to check what has changed since v0.1/1.0 (This crate is mostly developed according to v0.1 and v1.0)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
riscv
, riscv-rt
)d1-pac/Cargo.toml
riscv 0.10.1
vcell 0.1.3
critical-section 1.1
riscv-rt 0.11.0
r528-pac/Cargo.toml
bare-metal 1.0.0
vcell 0.1.3
v853-pac/Cargo.toml
bare-metal 1.0.0
vcell 0.1.3
xr806-pac/Cargo.toml
cortex-m 0.7
vcell 0.1.3
cortex-m-rt 0.7.3
.github/workflows/ci.yaml
actions/checkout v3
actions/checkout v3
ubuntu 20.04
.github/workflows/publish.yaml
actions/checkout v3
katyo/publish-crates v2
actions/checkout v3
katyo/publish-crates v2
actions/checkout v3
katyo/publish-crates v2
actions/checkout v3
katyo/publish-crates v2
ubuntu 20.04
ubuntu 20.04
ubuntu 20.04
ubuntu 20.04
.github/workflows/rustfmt.yaml
actions/checkout v3
ubuntu 20.04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.