Skip to content

svd2rust 0.24 #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2022
Merged
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/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: CI

env:
SVDTOOLS_VERSION: 0.2.1
SVD2RUST_VERSION: 0.23.0
SVDTOOLS_VERSION: 0.2.3
SVD2RUST_VERSION: 0.24.0
FORM_VERSION: 0.8.0

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mmaps_master.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build mmaps

env:
SVDTOOLS_VERSION: 0.2.1
SVDTOOLS_VERSION: 0.2.3

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mmaps_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: compare mmaps

env:
SVDTOOLS_VERSION: 0.2.1
SVDTOOLS_VERSION: 0.2.3

on:
pull_request_target:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightlies.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: build nightlies

env:
SVDTOOLS_VERSION: 0.2.1
SVD2RUST_VERSION: 0.23.0
SVDTOOLS_VERSION: 0.2.3
SVD2RUST_VERSION: 0.24.0
FORM_VERSION: 0.8.0

on:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Use PascalCase for values of enums
* Added missing TIMx:CR1:OPM, removed unused CNT_H, ARR_H, CCR_H
* Replace python svd tools with rust alternatives
* Updated to svd2rust 0.23.0
* Updated to svd2rust 0.24.0
* `SVDTOOLS` env value for specifying patching tool

Family-specific:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all: patch svd2rust
SHELL := /usr/bin/env bash

# Path to `svd`/`svdtools`
SVDTOOLS ?= svd
SVDTOOLS ?= svdtools

CRATES ?= stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32h7 \
stm32l0 stm32l1 stm32l4 stm32l5 stm32g0 stm32g4 stm32mp1 \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contain the latest patches and updates.

## Generating Device Crates / Building Locally

* Install `svd2rust`: `cargo install --version 0.23.0 svd2rust`
* Install `svd2rust`: `cargo install --version 0.24.0 svd2rust`
* Install `form`: `cargo install form`
* Install rustfmt: `rustup component add rustfmt`
* Install svdtools: `pip install --user svdtools`
Expand Down
2 changes: 1 addition & 1 deletion devices/common_patches/l0_tim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ TIM*:
CCR4:
description: Low Capture/Compare 4 value
bitOffset: 0
bitWidth: 16
bitWidth: 16
5 changes: 5 additions & 0 deletions devices/stm32g0b1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ UCPD*:
_strip:
- "UCPD_"

SPI1:
_modify:
"*":
size: 32

_include:
- ./common_patches/2_nvic_prio_bits.yaml
- ../peripherals/dma/dma_v1.yaml
Expand Down
5 changes: 5 additions & 0 deletions devices/stm32g0c1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ UCPD?:
_strip:
- "UCPD_"

SPI1:
_modify:
"*":
size: 32

_include:
- ./common_patches/2_nvic_prio_bits.yaml
- ../peripherals/dma/dma_v1.yaml
Expand Down
11 changes: 8 additions & 3 deletions peripherals/rng/rng_wl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ RNG:
SEIS:
NoFault: [0, "No faulty sequence detected"]
Fault: [1, "At least one faulty sequence has been detected"]
CEIS,CECS:
CEIS:
Correct: [0, "The RNG clock is correct (fRNGCLK> fHCLK/32)"]
Slow: [1, "The RNG clock before internal divider has been detected too slow (fRNGCLK< fHCLK/32)"]
SECS:
NoFault: [0, "No faulty sequence has currently been detected. If the SEIS bit is set, this means that a faulty sequence was detected and the situation has been recovered"]
Fault: [1, "At least one faulty sequence has been detected - see ref manual for details"]
_read:
NoFault: [0, "No faulty sequence has currently been detected. If the SEIS bit is set, this means that a faulty sequence was detected and the situation has been recovered"]
Fault: [1, "At least one faulty sequence has been detected - see ref manual for details"]
CECS:
_read:
Correct: [0, "The RNG clock is correct (fRNGCLK> fHCLK/32)"]
Slow: [1, "The RNG clock before internal divider has been detected too slow (fRNGCLK< fHCLK/32)"]
DRDY:
Invalid: [0, "The RNG_DR register is not yet valid, no random data is available"]
Valid: [1, "The RNG_DR register contains valid random data"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/makecrates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import yaml

VERSION = "0.14.0"
SVD2RUST_VERSION = "0.23.0"
SVD2RUST_VERSION = "0.24.0"

CRATE_DOC_FEATURES = {
"stm32f0": ["rt", "stm32f0x0", "stm32f0x1", "stm32f0x2", "stm32f0x8"],
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy