Merge pull request #9 "Even/Odd parity bit configs used the wrong bit"
Merge remote-tracking branch 'karlp/parity'
This commit is contained in:
commit
7753b91991
@ -270,8 +270,8 @@
|
|||||||
|
|
||||||
/* CR1_PCE / CR1_PS combined values */
|
/* CR1_PCE / CR1_PS combined values */
|
||||||
#define USART_PARITY_NONE 0x00
|
#define USART_PARITY_NONE 0x00
|
||||||
#define USART_PARITY_ODD USART_CR1_PS
|
#define USART_PARITY_EVEN USART_CR1_PCE
|
||||||
#define USART_PARITY_EVEN (USART_CR1_PS | USART_CR1_PCE)
|
#define USART_PARITY_ODD (USART_CR1_PS | USART_CR1_PCE)
|
||||||
#define USART_PARITY_MASK (USART_CR1_PS | USART_CR1_PCE)
|
#define USART_PARITY_MASK (USART_CR1_PS | USART_CR1_PCE)
|
||||||
|
|
||||||
/* CR1_TE/CR1_RE combined values */
|
/* CR1_TE/CR1_RE combined values */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user