STM32F0xx USARTs workaround.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8367 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
Giovanni Di Sirio 2015-10-16 08:33:20 +00:00
parent 0a6a80bb36
commit 6bb74a6edc
1 changed files with 12 additions and 2 deletions

View File

@ -30,7 +30,7 @@
/* Driver local definitions. */
/*===========================================================================*/
/* For compatibility for those devices without LIN support in the USARTS.*/
/* For compatibility for those devices without LIN support in the USARTs.*/
#if !defined(USART_ISR_LBDF)
#define USART_ISR_LBDF 0
#endif
@ -41,7 +41,17 @@
/* STM32L0xx/STM32F7xx ST headers difference.*/
#if !defined(USART_ISR_LBDF)
#define USART_ISR_LBDF USART_ISR_LBD
#define USART_ISR_LBDF USART_ISR_LBD
#endif
/* Handling the case where UART4 and UART5 are actually USARTs, this happens
in the STM32F0xx.*/
#if defined(USART4)
#define UART4 USART4
#endif
#if defined(USART5)
#define UART5 USART5
#endif
/*===========================================================================*/