Browse Source

Even/Odd parity bit configs used the wrong bit

Checked F10x, F100, F4 and L1 reference manuals.
Confirmed with my user application code.
pull/9/head
Karl Palsson 13 years ago
committed by Karl Palsson
parent
commit
9531d653fb
  1. 4
      include/libopencm3/stm32/usart.h

4
include/libopencm3/stm32/usart.h

@ -270,8 +270,8 @@
/* CR1_PCE / CR1_PS combined values */
#define USART_PARITY_NONE 0x00
#define USART_PARITY_ODD USART_CR1_PS
#define USART_PARITY_EVEN (USART_CR1_PS | USART_CR1_PCE)
#define USART_PARITY_EVEN USART_CR1_PCE
#define USART_PARITY_ODD (USART_CR1_PS | USART_CR1_PCE)
#define USART_PARITY_MASK (USART_CR1_PS | USART_CR1_PCE)
/* CR1_TE/CR1_RE combined values */

Loading…
Cancel
Save