Cleanup USARTv2 regs.

This commit is contained in:
Dario Nieuwenhuis 2021-07-15 00:12:08 +02:00
parent 6f66c9abdd
commit 7112b12a9d

View File

@ -109,6 +109,7 @@ fieldset/CR1:
description: Receiver wakeup method
bit_offset: 11
bit_size: 1
enum: WAKE
- name: M0
description: Word length
bit_offset: 12
@ -299,7 +300,6 @@ fieldset/CR3:
description: Overrun Disable
bit_offset: 12
bit_size: 1
enum: OVRDIS
- name: DDRE
description: DMA Disable on Reception Error
bit_offset: 13
@ -432,37 +432,32 @@ fieldset/DR:
description: Data register
fields:
- name: DR
description: data value
description: Data value
bit_offset: 0
bit_size: 9
fieldset/RQR:
description: Request register
fields:
- name: ABRRQ
description: Auto baud rate request
description: Auto baud rate request. Resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame.
bit_offset: 0
bit_size: 1
enum: ABRRQ
- name: SBKRQ
description: Send break request
description: Send break request. Sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available
bit_offset: 1
bit_size: 1
enum: SBKRQ
- name: MMRQ
description: Mute mode request
description: Mute mode request. Puts the USART in mute mode and sets the RWU flag.
bit_offset: 2
bit_size: 1
enum: MMRQ
- name: RXFRQ
description: Receive data flush request
description: Receive data flush request. Clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition
bit_offset: 3
bit_size: 1
enum: RXFRQ
- name: TXFRQ
description: Transmit data flush request
description: Transmit data flush request. Sets the TXE flags. This allows to discard the transmit data.
bit_offset: 4
bit_size: 1
enum: TXFRQ
fieldset/RTOR:
description: Receiver timeout register
fields:
@ -489,12 +484,6 @@ enum/ABRMOD:
- name: Frame55
description: "0x55 frame detection"
value: 3
enum/ABRRQ:
bit_size: 1
variants:
- name: Request
description: resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame
value: 1
enum/ADDM:
bit_size: 1
variants:
@ -531,15 +520,6 @@ enum/DATAINV:
- name: Negative
description: Logical data from the data register are send/received in negative/inverse logic
value: 1
enum/DDRE:
bit_size: 1
variants:
- name: NotDisabled
description: DMA is not disabled in case of reception error
value: 0
- name: Disabled
description: DMA is disabled following a reception error
value: 1
enum/DEP:
bit_size: 1
variants:
@ -603,12 +583,6 @@ enum/M1:
- name: Bit7
description: "1 start bit, 7 data bits, n stop bits"
value: 1
enum/MMRQ:
bit_size: 1
variants:
- name: Mute
description: Puts the USART in mute mode and sets the RWU flag
value: 1
enum/MSBFIRST:
bit_size: 1
variants:
@ -636,15 +610,6 @@ enum/OVER:
- name: Oversampling8
description: Oversampling by 8
value: 1
enum/OVRDIS:
bit_size: 1
variants:
- name: Enabled
description: "Overrun Error Flag, ORE, is set when received data is not read before receiving new data"
value: 0
- name: Disabled
description: 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
value: 1
enum/PS:
bit_size: 1
variants:
@ -654,12 +619,6 @@ enum/PS:
- name: Odd
description: Odd parity
value: 1
enum/RXFRQ:
bit_size: 1
variants:
- name: Discard
description: "clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition"
value: 1
enum/RXINV:
bit_size: 1
variants:
@ -669,12 +628,6 @@ enum/RXINV:
- name: Inverted
description: RX pin signal values are inverted
value: 1
enum/SBKRQ:
bit_size: 1
variants:
- name: Break
description: "sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available"
value: 1
enum/STOP:
bit_size: 2
variants:
@ -699,12 +652,6 @@ enum/SWAP:
- name: Swapped
description: The TX and RX pins functions are swapped
value: 1
enum/TXFRQ:
bit_size: 1
variants:
- name: Discard
description: Set the TXE flags. This allows to discard the transmit data
value: 1
enum/TXINV:
bit_size: 1
variants: