Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cargo-make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: cargo make form

- name: Check PACs
run: cargo make check-patched
run: cargo make check

- name: Clean up
run: cargo make clean-all
run: cargo make clean
27 changes: 27 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[tasks.crates]
command = "make"
args = ["crates"]

[tasks.install]
command = "make"
args = ["install"]

[tasks.patch]
command = "make"
args = ["patch"]

[tasks.svd2rust]
command = "make"
args = ["svd2rust"]

[tasks.form]
command = "make"
args = ["form"]

[tasks.check]
command = "make"
args = ["check"]

[tasks.clean]
command = "make"
args = ["clean"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> This repo is modified from [stm32-rs](https://github.com/stm32-rs/stm32-rs)

[![CI](https://github.com/creatoy/py32-rs/workflows/CI/badge.svg?branch=master)](https://github.com/creatoy/py32-rs)
[![CI](https://github.com/py32-rust/py32-rs/workflows/CI/badge.svg?branch=master)](https://github.com/py32-rust/py32-rs)
[![crates.io](https://img.shields.io/crates/v/py32f0.svg?label=py32f0)](https://crates.io/crates/py32f0)

This repository provides Rust device support crates for all py32
Expand Down
6 changes: 6 additions & 0 deletions devices/common_patches/spi_f002b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Rename DDF field in CR1 to DFF to match datasheet
CR1:
_modify:
DDF:
name: DFF
description: desc DFF
1 change: 1 addition & 0 deletions devices/py32f002b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ _svd: ../svd/py32f002b.svd
"SPI*":
_include:
- common_patches/spi_dr8.yaml
- common_patches/spi_f002b.yaml

"USART*":
_include:
Expand Down
10 changes: 5 additions & 5 deletions scripts/makecrates.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re
import yaml

VERSION = "0.1.1"
VERSION = "0.2.0"
SVD2RUST_VERSION = "0.28.0"

CRATE_DOC_FEATURES = {
Expand All @@ -34,7 +34,7 @@
version = "{version}"
authors = ["creatoy <[email protected]>", "py32-rs Contributors"]
description = "Device support crates for {family} devices"
repository = "https://github.com/creatoy/py32-rs"
repository = "https://github.com/py32-rust/py32-rs"
readme = "README.md"
keywords = ["py32", "svd2rust", "no_std", "embedded"]
categories = ["embedded", "no-std"]
Expand Down Expand Up @@ -66,15 +66,15 @@
//! [svd2rust/#peripheral-api](https://docs.rs/svd2rust/{svd2rust_version}/svd2rust/#peripheral-api)
//!
//! For more details see the README here:
//! [py32-rs](https://github.com/creatoy/py32-rs)
//! [py32-rs](https://github.com/py32-rust/py32-rs)
//!
//! This crate supports all {family} devices; for the complete list please
//! see:
//! [{crate}](https://crates.io/crates/{crate})
//!
//! Due to doc build limitations, not all devices may be shown on docs.rs;
//! a representative few have been selected instead. For a complete list of
//! available registers and fields see: [py32-rs Device Coverage](https://creatoy.github.io/py32-rs/)
//! available registers and fields see: [py32-rs Device Coverage](https://py32-rust.github.io/py32-rs/)

#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
Expand All @@ -95,7 +95,7 @@
Refer to the [documentation] for full details.

[svd2rust]: https://github.com/rust-embedded/svd2rust
[main repo]: https://github.com/creatoy/py32-rs
[main repo]: https://github.com/py32-rust/py32-rs
[documentation]: https://docs.rs/{crate}/latest/{crate}/

## Usage
Expand Down
Loading