Skip to content

Commit e61e808

Browse files
gpgreencreatoy
authored andcommitted
Add DR8 register to USART peripheral
1 parent e6642c2 commit e61e808

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
_add:
2+
DR8:
3+
description: Direct 8-bit access to data register
4+
access: read-write
5+
addressOffset: 0x4
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]

devices/py32f002a.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ _svd: ../svd/py32f002a.svd
44
_include:
55
- common_patches/spi_dr8.yaml
66

7+
"USART*":
8+
_include:
9+
- common_patches/usart_dr8.yaml
10+
711
_include:
812
- ./common_patches/pwr_f002a.yaml
913
- ./common_patches/syscfg_f002a.yaml

devices/py32f002b.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ _svd: ../svd/py32f002b.svd
44
_include:
55
- common_patches/spi_dr8.yaml
66

7+
"USART*":
8+
_include:
9+
- common_patches/usart_dr8.yaml
10+
711
_include:
812
- ./common_patches/syscfg_f002b.yaml
913
- ../peripherals/flash/flash_f002b.yaml

devices/py32f003.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ _svd: ../svd/py32f003.svd
44
_include:
55
- common_patches/spi_dr8.yaml
66

7+
"USART*":
8+
_include:
9+
- common_patches/usart_dr8.yaml
10+
711
_include:
812
- ../peripherals/flash/flash_f0.yaml
913
- ../peripherals/pwr/pwr_f0.yaml

devices/py32f030.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ _svd: ../svd/py32f030.svd
44
_include:
55
- common_patches/spi_dr8.yaml
66

7+
"USART*":
8+
_include:
9+
- common_patches/usart_dr8.yaml
10+
711
_include:
812
- ../peripherals/flash/flash_f0.yaml
913
- ../peripherals/pwr/pwr_f0.yaml

0 commit comments

Comments
 (0)