mirror of https://github.com/rusefi/openblt.git
Refs #1631. Added support for UART7 and UART8 in the RS232 driver of the STM32F4 port
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1004 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
700b3dafcb
commit
6d5be72cf6
|
@ -55,14 +55,20 @@
|
|||
/** \brief Set UART base address to USART3. */
|
||||
#define USART_CHANNEL USART3
|
||||
#elif (BOOT_COM_RS232_CHANNEL_INDEX == 3)
|
||||
/** \brief Set UART base address to USART4. */
|
||||
#define USART_CHANNEL USART4
|
||||
/** \brief Set UART base address to UART4. */
|
||||
#define USART_CHANNEL UART4
|
||||
#elif (BOOT_COM_RS232_CHANNEL_INDEX == 4)
|
||||
/** \brief Set UART base address to USART5. */
|
||||
#define USART_CHANNEL USART5
|
||||
/** \brief Set UART base address to UART5. */
|
||||
#define USART_CHANNEL UART5
|
||||
#elif (BOOT_COM_RS232_CHANNEL_INDEX == 5)
|
||||
/** \brief Set UART base address to USART6. */
|
||||
/** \brief Set UART base address to UART6. */
|
||||
#define USART_CHANNEL USART6
|
||||
#elif (BOOT_COM_RS232_CHANNEL_INDEX == 6)
|
||||
/** \brief Set UART base address to UART7. */
|
||||
#define USART_CHANNEL UART7
|
||||
#elif (BOOT_COM_RS232_CHANNEL_INDEX == 7)
|
||||
/** \brief Set UART base address to UART8. */
|
||||
#define USART_CHANNEL UART8
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -90,7 +96,9 @@ void Rs232Init(void)
|
|||
(BOOT_COM_RS232_CHANNEL_INDEX == 2) ||
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 3) ||
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 4) ||
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 5));
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 5) ||
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 6) ||
|
||||
(BOOT_COM_RS232_CHANNEL_INDEX == 7));
|
||||
|
||||
/* disable the UART peripheral */
|
||||
LL_USART_Disable(USART_CHANNEL);
|
||||
|
|
Loading…
Reference in New Issue