Add UART4/5 register definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2096 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
a7942e1bbe
commit
6bd27cc477
@ -91,11 +91,21 @@
|
||||
#endif
|
||||
|
||||
#if STM32_NUSART > 3
|
||||
# warning "Check UART4 register definitions"
|
||||
# define STM32_UART4_SR (STM32_UART4_BASE+STM32_USART_SR_OFFSET)
|
||||
# define STM32_UART4_DR (STM32_UART4_BASE+STM32_USART_DR_OFFSET)
|
||||
# define STM32_UART4_BRR (STM32_UART4_BASE+STM32_USART_BRR_OFFSET)
|
||||
# define STM32_UART4_CR1 (STM32_UART4_BASE+STM32_USART_CR1_OFFSET)
|
||||
# define STM32_UART4_CR2 (STM32_UART4_BASE+STM32_USART_CR2_OFFSET)
|
||||
# define STM32_UART4_CR3 (STM32_UART4_BASE+STM32_USART_CR3_OFFSET)
|
||||
#endif
|
||||
|
||||
#if STM32_NUSART > 4
|
||||
# warning "Check UART5 register definitions"
|
||||
# define STM32_UART5_SR (STM32_UART5_BASE+STM32_USART_SR_OFFSET)
|
||||
# define STM32_UART5_DR (STM32_UART5_BASE+STM32_USART_DR_OFFSET)
|
||||
# define STM32_UART5_BRR (STM32_UART5_BASE+STM32_USART_BRR_OFFSET)
|
||||
# define STM32_UART5_CR1 (STM32_UART5_BASE+STM32_USART_CR1_OFFSET)
|
||||
# define STM32_UART5_CR2 (STM32_UART5_BASE+STM32_USART_CR2_OFFSET)
|
||||
# define STM32_UART5_CR3 (STM32_UART5_BASE+STM32_USART_CR3_OFFSET)
|
||||
#endif
|
||||
|
||||
/* Register Bitfield Definitions ****************************************************/
|
||||
|
@ -112,27 +112,50 @@ CONFIG_STM32_BUILDROOT=y
|
||||
CONFIG_USART1_DISABLE=n
|
||||
CONFIG_USART2_DISABLE=y
|
||||
CONFIG_USART3_DISABLE=y
|
||||
CONFIG_USART4_DISABLE=y
|
||||
CONFIG_USART5_DISABLE=y
|
||||
|
||||
CONFIG_USART1_SERIAL_CONSOLE=y
|
||||
CONFIG_USART2_SERIAL_CONSOLE=n
|
||||
CONFIG_USART3_SERIAL_CONSOLE=n
|
||||
CONFIG_USART4_SERIAL_CONSOLE=n
|
||||
CONFIG_USART5_SERIAL_CONSOLE=n
|
||||
|
||||
CONFIG_USART1_TXBUFSIZE=256
|
||||
CONFIG_USART2_TXBUFSIZE=256
|
||||
CONFIG_USART3_TXBUFSIZE=256
|
||||
CONFIG_USART4_TXBUFSIZE=256
|
||||
CONFIG_USART5_TXBUFSIZE=256
|
||||
|
||||
CONFIG_USART1_RXBUFSIZE=256
|
||||
CONFIG_USART2_RXBUFSIZE=256
|
||||
CONFIG_USART3_RXBUFSIZE=256
|
||||
CONFIG_USART4_RXBUFSIZE=256
|
||||
CONFIG_USART5_RXBUFSIZE=256
|
||||
|
||||
CONFIG_USART1_BAUD=115200
|
||||
CONFIG_USART2_BAUD=115200
|
||||
CONFIG_USART3_BAUD=115200
|
||||
CONFIG_USART4_BAUD=115200
|
||||
CONFIG_USART5_BAUD=115200
|
||||
|
||||
CONFIG_USART1_BITS=8
|
||||
CONFIG_USART2_BITS=8
|
||||
CONFIG_USART3_BITS=8
|
||||
CONFIG_USART4_BITS=8
|
||||
CONFIG_USART5_BITS=8
|
||||
|
||||
CONFIG_USART1_PARITY=0
|
||||
CONFIG_USART2_PARITY=0
|
||||
CONFIG_USART3_PARITY=0
|
||||
CONFIG_USART4_PARITY=0
|
||||
CONFIG_USART5_PARITY=0
|
||||
|
||||
CONFIG_USART1_2STOP=0
|
||||
CONFIG_USART2_2STOP=0
|
||||
CONFIG_USART3_2STOP=0
|
||||
CONFIG_USART4_2STOP=0
|
||||
CONFIG_USART5_2STOP=0
|
||||
|
||||
#
|
||||
# STM32F103Z specific SSI device driver settings
|
||||
|
Loading…
Reference in New Issue
Block a user