Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb0a621

Browse files
committed
G4 UART/LPUART
1 parent59190d2 commitbb0a621

17 files changed

+497
-312
lines changed

‎CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
* Updated to`svdtools` 0.5.0
66
* refactor COMP & OPAMP on F3/G4/L4
77

8+
Family-specific:
9+
10+
* G4:
11+
* UART: remove missing fields, derive UART/LPUART from USART
12+
813
* L4:
914
* Fix L412 LPTIM2, LPUART1, SPI1/2 and RCC interrupts and correct RCC SMENR register reset values (#1244)
1015

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
_derive:
2+
RDR:USART1.RDR
3+
TDR:USART1.TDR
4+
PRESC:USART1.PRESC
5+
CR1:
6+
_derive:
7+
UE:USART1.CR1.UE
8+
UESM:USART1.CR1.UESM
9+
RE:USART1.CR1.RE
10+
TE:USART1.CR1.TE
11+
IDLEIE:USART1.CR1.IDLEIE
12+
RXNEIE:USART1.CR1.RXNEIE
13+
TCIE:USART1.CR1.TCIE
14+
TXEIE:USART1.CR1.TXEIE
15+
PEIE:USART1.CR1.PEIE
16+
PS:USART1.CR1.PS
17+
PCE:USART1.CR1.PCE
18+
WAKE:USART1.CR1.WAKE
19+
M0:USART1.CR1.M0
20+
MME:USART1.CR1.MME
21+
CMIE:USART1.CR1.CMIE
22+
DEDT:USART1.CR1.DEDT
23+
DEAT:USART1.CR1.DEAT
24+
M1:USART1.CR1.M1
25+
FIFOEN:USART1.CR1.FIFOEN
26+
TXFEIE:USART1.CR1.TXFEIE
27+
RXFFIE:USART1.CR1.RXFFIE
28+
CR2:
29+
_derive:
30+
ADDM7:USART1.CR2.ADDM7
31+
SWAP:USART1.CR2.SWAP
32+
RXINV:USART1.CR2.RXINV
33+
TXINV:USART1.CR2.TXINV
34+
DATAINV:USART1.CR2.DATAINV
35+
MSBFIRST:USART1.CR2.MSBFIRST
36+
ADD:USART1.CR2.ADD
37+
CR3:
38+
_derive:
39+
EIE:USART1.CR3.EIE
40+
HDSEL:USART1.CR3.HDSEL
41+
DMAR:USART1.CR3.DMAR
42+
DMAT:USART1.CR3.DMAT
43+
RTSE:USART1.CR3.RTSE
44+
CTSE:USART1.CR3.CTSE
45+
CTSIE:USART1.CR3.CTSIE
46+
OVRDIS:USART1.CR3.OVRDIS
47+
DDRE:USART1.CR3.DDRE
48+
DEM:USART1.CR3.DEM
49+
DEP:USART1.CR3.DEP
50+
WUS:USART1.CR3.WUS
51+
WUFIE:USART1.CR3.WUFIE
52+
TXFTIE:USART1.CR3.TXFTIE
53+
RXFTCFG:USART1.CR3.RXFTCFG
54+
RXFTIE:USART1.CR3.RXFTIE
55+
TXFTCFG:USART1.CR3.TXFTCFG
56+
RQR:
57+
_derive:
58+
SBKRQ:USART1.RQR.SBKRQ
59+
MMRQ:USART1.RQR.MMRQ
60+
RXFRQ:USART1.RQR.RXFRQ
61+
TXFRQ:USART1.RQR.TXFRQ
62+
ISR:
63+
_derive:
64+
PE:USART1.ISR.PE
65+
FE:USART1.ISR.FE
66+
NF:USART1.ISR.NF
67+
ORE:USART1.ISR.ORE
68+
IDLE:USART1.ISR.IDLE
69+
RXNE:USART1.ISR.RXNE
70+
TC:USART1.ISR.TC
71+
TXE:USART1.ISR.TXE
72+
CTSIF:USART1.ISR.CTSIF
73+
CTS:USART1.ISR.CTS
74+
BUSY:USART1.ISR.BUSY
75+
CMF:USART1.ISR.CMF
76+
SBKF:USART1.ISR.SBKF
77+
RWU:USART1.ISR.RWU
78+
WUF:USART1.ISR.WUF
79+
TEACK:USART1.ISR.TEACK
80+
REACK:USART1.ISR.REACK
81+
TXFE:USART1.ISR.TXFE
82+
RXFF:USART1.ISR.RXFF
83+
RXFT:USART1.ISR.RXFT
84+
TXFT:USART1.ISR.TXFT
85+
ICR:
86+
_derive:
87+
PECF:USART1.ICR.PECF
88+
FECF:USART1.ICR.FECF
89+
NCF:USART1.ICR.NCF
90+
ORECF:USART1.ICR.ORECF
91+
IDLECF:USART1.ICR.IDLECF
92+
TCCF:USART1.ICR.TCCF
93+
CTSCF:USART1.ICR.CTSCF
94+
CMCF:USART1.ICR.CMCF
95+
WUCF:USART1.ICR.WUCF
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
_derive:
2+
BRR:USART1.BRR
3+
RTOR:USART1.RTOR
4+
CR1:
5+
_derive:
6+
OVER8:USART1.CR1.OVER8
7+
RTOIE:USART1.CR1.RTOIE
8+
CR2:
9+
_derive:
10+
LBDL:USART1.CR2.LBDL
11+
LBDIE:USART1.CR2.LBDIE
12+
STOP:USART1.CR2.STOP
13+
LINEN:USART1.CR2.LINEN
14+
ABREN:USART1.CR2.ABREN
15+
ABRMOD:USART1.CR2.ABRMOD
16+
RTOEN:USART1.CR2.RTOEN
17+
CR3:
18+
_derive:
19+
IREN:USART1.CR3.IREN
20+
IRLP:USART1.CR3.IRLP
21+
ONEBIT:USART1.CR3.ONEBIT
22+
GTPR:
23+
_derive:
24+
PSC:USART1.GTPR.PSC
25+
RQR:
26+
_derive:
27+
ABRRQ:USART1.RQR.ABRRQ
28+
ISR:
29+
_derive:
30+
LBDF:USART1.ISR.LBDF
31+
RTOF:USART1.ISR.RTOF
32+
ABRE:USART1.ISR.ABRE
33+
ABRF:USART1.ISR.ABRF
34+
ICR:
35+
_derive:
36+
TXFECF:USART1.ICR.TXFECF
37+
TCBGTCF:USART1.ICR.TCBGTCF
38+
LBDCF:USART1.ICR.LBDCF
39+
RTOCF:USART1.ICR.RTOCF
Lines changed: 2 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,8 @@
11
# Common fields between v2 A, B and C peripherals
22

3-
CR1:
4-
DEAT:[0, 0b11111]
5-
DEDT:[0, 0b11111]
6-
CMIE:
7-
Disabled:[0, Interrupt is disabled]
8-
Enabled:[1, Interrupt is generated when the CMF bit is set in the ISR register]
9-
MME:
10-
Disabled:[0, Receiver in active mode permanently]
11-
Enabled:[1, Receiver can switch between mute mode and active mode]
12-
WAKE:
13-
Idle:[0, Idle line]
14-
Address:[1, Address mask]
15-
PCE:
16-
Disabled:[0, Parity control disabled]
17-
Enabled:[1, Parity control enabled]
18-
PS:
19-
Even:[0, Even parity]
20-
Odd:[1, Odd parity]
21-
PEIE:
22-
Disabled:[0, Interrupt is disabled]
23-
Enabled:[1, "Interrupt is generated whenever PE=1 in the ISR register"]
24-
TXEIE:
25-
Disabled:[0, Interrupt is disabled]
26-
Enabled:[1, "Interrupt is generated whenever TXE=1 in the ISR register"]
27-
TCIE:
28-
Disabled:[0, Interrupt is disabled]
29-
Enabled:[1, "Interrupt is generated whenever TC=1 in the ISR register"]
30-
RXNEIE:
31-
Disabled:[0, Interrupt is disabled]
32-
Enabled:[1, "Interrupt is generated whenever ORE=1 or RXNE=1 in the ISR register"]
33-
IDLEIE:
34-
Disabled:[0, Interrupt is disabled]
35-
Enabled:[1, "Interrupt is generated whenever IDLE=1 in the ISR register"]
36-
TE:
37-
Disabled:[0, Transmitter is disabled]
38-
Enabled:[1, Transmitter is enabled]
39-
RE:
40-
Disabled:[0, Receiver is disabled]
41-
Enabled:[1, Receiver is enabled]
42-
UE:
43-
Disabled:[0, UART is disabled]
44-
Enabled:[1, UART is enabled]
3+
_include:uart_common.yaml
4+
455
CR2:
46-
ADD:[0, 0xFF]
47-
MSBFIRST:
48-
LSB:[0, "data is transmitted/received with data bit 0 first, following the start bit"]
49-
MSB:[1, "data is transmitted/received with MSB (bit 7/8/9) first, following the start bit"]
50-
TXINV:
51-
Standard:[0, TX pin signal works using the standard logic levels]
52-
Inverted:[1, TX pin signal values are inverted]
53-
RXINV:
54-
Standard:[0, RX pin signal works using the standard logic levels]
55-
Inverted:[1, RX pin signal values are inverted]
56-
DATAINV:
57-
Positive:[0, Logical data from the data register are send/received in positive/direct logic]
58-
Negative:[1, Logical data from the data register are send/received in negative/inverse logic]
59-
SWAP:
60-
Standard:[0, TX/RX pins are used as defined in standard pinout]
61-
Swapped:[1, The TX and RX pins functions are swapped]
626
STOP:
637
Stop1:[0, 1 stop bit]
648
Stop0p5:[1, 0.5 stop bit]
@@ -67,120 +11,3 @@ CR2:
6711
"?~CLKEN":
6812
Disabled:[0, CK pin disabled]
6913
Enabled:[1, CK pin enabled]
70-
ADDM7:
71-
Bit4:[0, 4-bit address detection]
72-
Bit7:[1, 7-bit address detection]
73-
CR3:
74-
DEP:
75-
High:[0, DE signal is active high]
76-
Low:[1, DE signal is active low]
77-
DEM:
78-
Disabled:[0, DE function is disabled]
79-
Enabled:[1, The DE signal is output on the RTS pin]
80-
DDRE:
81-
NotDisabled:[0, DMA is not disabled in case of reception error]
82-
Disabled:[1, DMA is disabled following a reception error]
83-
OVRDIS:
84-
Enabled:[0, "Overrun Error Flag, ORE, is set when received data is not read before receiving new data"]
85-
Disabled:
86-
[
87-
1,
88-
Overrun functionality is disabled. If new data is received while the RXNE flag is still set the ORE flag is not set and the new received data overwrites the previous content of the RDR register,
89-
]
90-
CTSIE:
91-
Disabled:[0, Interrupt is inhibited]
92-
Enabled:[1, "An interrupt is generated whenever CTSIF=1 in the ISR register"]
93-
CTSE:
94-
Disabled:[0, CTS hardware flow control disabled]
95-
Enabled:[1, "CTS mode enabled, data is only transmitted when the CTS input is asserted"]
96-
RTSE:
97-
Disabled:[0, RTS hardware flow control disabled]
98-
Enabled:[1, "RTS output enabled, data is only requested when there is space in the receive buffer"]
99-
DMAT:
100-
Disabled:[0, DMA mode is disabled for transmission]
101-
Enabled:[1, DMA mode is enabled for transmission]
102-
DMAR:
103-
Disabled:[0, DMA mode is disabled for reception]
104-
Enabled:[1, DMA mode is enabled for reception]
105-
HDSEL:
106-
NotSelected:[0, Half duplex mode is not selected]
107-
Selected:[1, Half duplex mode is selected]
108-
EIE:
109-
Disabled:[0, Interrupt is inhibited]
110-
Enabled:[1, "An interrupt is generated when FE=1 or ORE=1 or NF=1 in the ISR register"]
111-
RQR:
112-
RXFRQ:
113-
Discard:
114-
[
115-
1,
116-
"clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition",
117-
]
118-
MMRQ:
119-
Mute:[1, Puts the USART in mute mode and sets the RWU flag]
120-
SBKRQ:
121-
Break:
122-
[1, "sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available"]
123-
ISR:
124-
PE:
125-
NoError:[0, No parity error]
126-
Error:[1, Parity error]
127-
FE:
128-
NoError:[0, No Framing error is detected]
129-
Error:[1, Framing error or break character is detected]
130-
"NE,NF":
131-
NoNoise:[0, No noise is detected]
132-
Noise:[1, Noise is detected]
133-
ORE:
134-
NoOverrun:[0, No Overrun error]
135-
Overrun:[1, Overrun error is detected]
136-
IDLE:
137-
NoIdle:[0, No Idle Line is detected]
138-
Idle:[1, Idle Line is detected]
139-
"RXNE,RXFNE":
140-
NoData:[0, Data is not received]
141-
DataReady:[1, Received data is ready to be read]
142-
TC:
143-
TxNotComplete:[0, Transmission is not complete]
144-
TxComplete:[1, Transmission is complete]
145-
"TXE,TXFNF":
146-
Full:[0, Transmit FIFO is full]
147-
NotFull:[1, Transmit FIFO is not full]
148-
CTSIF:
149-
NotChanged:[0, No change occurred on the CTS status line]
150-
Changed:[1, A change occurred on the CTS status line]
151-
CTS:
152-
Set:[0, CTS line set]
153-
Reset:[1, CTS line reset]
154-
BUSY:
155-
Idle:[0, USART is idle (no reception)]
156-
Busy:[1, Reception on going]
157-
CMF:
158-
NoMatch:[0, No Character match detected]
159-
Match:[1, Character match detected]
160-
SBKF:
161-
NoBreak:[0, No break character transmitted]
162-
Break:[1, Break character transmitted]
163-
TEACK:
164-
ICR:
165-
"*":
166-
_W1C:{}
167-
CMCF:
168-
Clear:[1, Clears the CMF flag in the ISR register]
169-
CTSCF:
170-
Clear:[1, Clears the CTSIF flag in the ISR register]
171-
TCCF:
172-
Clear:[1, Clears the TC flag in the ISR register]
173-
IDLECF:
174-
Clear:[1, Clears the IDLE flag in the ISR register]
175-
ORECF:
176-
Clear:[1, Clears the ORE flag in the ISR register]
177-
"NCF,NCEF,NECF":
178-
Clear:[1, Clears the NF flag in the ISR register]
179-
FECF:
180-
Clear:[1, Clears the FE flag in the ISR register]
181-
PECF:
182-
Clear:[1, Clears the PE flag in the ISR register]
183-
RDR:
184-
RDR:[0, 0x1FF]
185-
TDR:
186-
TDR:[0, 0x1FF]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp