Skip to content

Commit e6642c2

Browse files
committed
Add DR8 register to SPI peripheral
1 parent 5136ee7 commit e6642c2

File tree

9 files changed

+36
-3
lines changed

9 files changed

+36
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mmaps/
1010
/venv
1111
.devcontainer
1212
svd/*.svd*
13+
svd/.extracted
1314

1415
# automatically generated crates
1516
/py32*/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ make any guarantee of correctness. Please report any bugs you find!
2626
In your own project's `Cargo.toml`:
2727
```toml
2828
[dependencies.py32f0]
29-
version = "0.0.1"
29+
version = "0.1.1"
3030
features = ["py32f030"]
3131
```
3232

@@ -162,7 +162,7 @@ Notes for maintainers:
162162
2. Merge PR once CI passes, pull master locally.
163163
3. `make clean`
164164
4. `make -j16 form`
165-
5. `for f in py32f0; cd $f; pwd; cargo publish --allow-dirty --no-default-features; cd ..; end`
165+
5. `cd py32f0; pwd; cargo publish --allow-dirty --no-default-features`
166166
6. `git tag -a vX.X.X -m vX.X.X`
167167
7. `git push vX.X.X`
168168

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
_add:
2+
DR8:
3+
description: Direct 8-bit access to data register
4+
access: read-write
5+
addressOffset: 0xC
6+
alternateRegister: DR
7+
size: 0x8
8+
fields:
9+
DR:
10+
bitOffset: 0
11+
bitWidth: 8
12+
description: Data register
13+
14+
DR8:
15+
DR: [0, 0xFF]
16+

devices/py32f002a.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
_svd: ../svd/py32f002a.svd
22

3+
"SPI*":
4+
_include:
5+
- common_patches/spi_dr8.yaml
6+
37
_include:
48
- ./common_patches/pwr_f002a.yaml
59
- ./common_patches/syscfg_f002a.yaml

devices/py32f002b.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
_svd: ../svd/py32f002b.svd
22

3+
"SPI*":
4+
_include:
5+
- common_patches/spi_dr8.yaml
6+
37
_include:
48
- ./common_patches/syscfg_f002b.yaml
59
- ../peripherals/flash/flash_f002b.yaml

devices/py32f003.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
_svd: ../svd/py32f003.svd
22

3+
"SPI*":
4+
_include:
5+
- common_patches/spi_dr8.yaml
6+
37
_include:
48
- ../peripherals/flash/flash_f0.yaml
59
- ../peripherals/pwr/pwr_f0.yaml

devices/py32f030.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
_svd: ../svd/py32f030.svd
22

3+
"SPI*":
4+
_include:
5+
- common_patches/spi_dr8.yaml
6+
37
_include:
48
- ../peripherals/flash/flash_f0.yaml
59
- ../peripherals/pwr/pwr_f0.yaml

scripts/makecrates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re
1717
import yaml
1818

19-
VERSION = "0.1.0"
19+
VERSION = "0.1.1"
2020
SVD2RUST_VERSION = "0.28.0"
2121

2222
CRATE_DOC_FEATURES = {

svd/.extracted

Whitespace-only changes.

0 commit comments

Comments
 (0)