Fixes in STM32 serial driver.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9641 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-06-17 13:59:35 +00:00
parent 458e6a84df
commit bd0d0251e2
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@
#define USART_ISR_LBDF USART_ISR_LBD
#endif
/* Handling differences in frame size bits.*/
#if !defined(USART_CR1_M_0)
#define USART_CR1_M_0 (1 << 12)
#endif
#if !defined(USART_CR1_M_1)
#define USART_CR1_M_1 (1 << 28)
#endif
/* Handling the case where UART4 and UART5 are actually USARTs, this happens
in the STM32F0xx.*/
#if defined(USART4)