Skip to content

Commit b0eeefa

Browse files
authored
Merge pull request #10 from py32-rust/py32f040
Py32f040
2 parents 303bdc5 + 2ed00e3 commit b0eeefa

37 files changed

+14448
-43
lines changed

CHANGELOG.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## v0.2.0
5+
## v0.2.1 2025-01-28
6+
7+
### Added
8+
9+
- Added array access to timer CCR registers
10+
- Added py32f040 device
11+
- `scripts/README.md` to show usage of scripts
12+
- modified scripts to handle `bitRange` vs `bitOffset` and `bitWidth` usage in svd files
13+
14+
### Changed
15+
16+
- Renamed field `DBG_TIM14_STOP` to `DBG_TIMER14_STOP` in `DBG` peripheral for py32f002b to make it consistent with other devices
17+
18+
### Removed
19+
20+
- Removed renaming of timer CCR registers
21+
22+
## v0.2.0 2024-12-28
623

724
### Added
825

@@ -17,11 +34,11 @@ All notable changes to this project will be documented in this file.
1734
- Updated form version from 0.10.0 to 0.12.1
1835
- Updated svdtools version from 0.3.0 to 0.3.14
1936

20-
## v0.1.1
37+
## v0.1.1 2024-10-10
2138

22-
## V0.1.0
39+
## V0.1.0 2024-09-27
2340

24-
## v0.0.1
41+
## v0.0.1 2023-06-10
2542

2643
- Original Release
2744

README.md

Lines changed: 1 addition & 1 deletion
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.1.1"
29+
version = "0.2.1"
3030
features = ["py32f030"]
3131
```
3232

devices/common_patches/adc_rw.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SR:
2+
_modify:
3+
OVER:
4+
access: read-write
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
APB_FZ2:
2+
_modify:
3+
DBG_TIM14_STOP:
4+
name: DBG_TIMER14_STOP
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
OPTR:
2+
_modify:
3+
NBOOT1:
4+
name: nBOOT1
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
PRLH:
2+
_modify:
3+
PRL:
4+
name: PRLH
5+
PRLL:
6+
_modify:
7+
PRL:
8+
name: PRLL
9+
DIVH:
10+
_modify:
11+
DIV:
12+
name: DIVH
13+
DIVL:
14+
_modify:
15+
DIV:
16+
name: DIVL
17+
CNTH:
18+
_modify:
19+
RTC_CNT:
20+
name: CNTH
21+
CNTL:
22+
_modify:
23+
RTC_CNT:
24+
name: CNTL
25+
ALRH:
26+
_modify:
27+
RTC_ALR:
28+
name: ALRH
29+
ALRL:
30+
_modify:
31+
RTC_ALR:
32+
name: ALRL
33+
_modify:
34+
BKP_RTCCR:
35+
name: RTCCR
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_array:
2+
CCR*: {}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BRR:
2+
_modify:
3+
DIV_FRACTION:
4+
name: DIV_Fraction
5+
DIV_MANTISSA:
6+
name: DIV_Mantissa
7+
CR3:
8+
_modify:
9+
ABRMODE:
10+
name: ABRMOD

devices/py32f002a.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ _svd: ../svd/py32f002a.svd
88
_include:
99
- common_patches/usart_dr8.yaml
1010

11+
TIM1:
12+
_include:
13+
- common_patches/timer_ccr_reg_array.yaml
14+
1115
_include:
1216
- ./common_patches/pwr_f002a.yaml
1317
- ./common_patches/syscfg_f002a.yaml

devices/py32f002b.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ _svd: ../svd/py32f002b.svd
99
_include:
1010
- common_patches/usart_dr8.yaml
1111

12+
"DBG":
13+
_include:
14+
- common_patches/f002b_dbg.yaml
15+
16+
"TIM*":
17+
_include:
18+
- common_patches/timer_ccr_reg_array.yaml
19+
1220
_include:
1321
- ./common_patches/syscfg_f002b.yaml
1422
- ../peripherals/flash/flash_f002b.yaml

0 commit comments

Comments
 (0)