mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 06:17:34 +08:00
aerofc: streamline nuttx configuration
Remove what's not used like SPI and UART ports, ADC, etc. Add UART5 and I2C1 that are going to be used. This also received contribution from José Roberto de Souza <jose.souza@intel.com>.
This commit is contained in:
committed by
Lorenz Meier
parent
0cd7984b7f
commit
cf07fa3a1c
@@ -8,8 +8,8 @@ CONFIG_NUTTX_NEWCONFIG=y
|
||||
# Build Setup
|
||||
#
|
||||
# CONFIG_EXPERIMENTAL is not set
|
||||
# CONFIG_HOST_LINUX is not set
|
||||
CONFIG_HOST_OSX=y
|
||||
CONFIG_HOST_LINUX=y
|
||||
# CONFIG_HOST_OSX is not set
|
||||
# CONFIG_HOST_WINDOWS is not set
|
||||
# CONFIG_HOST_OTHER is not set
|
||||
|
||||
@@ -204,7 +204,7 @@ CONFIG_STM32_STM32F427=y
|
||||
#
|
||||
# STM32 Peripheral Support
|
||||
#
|
||||
CONFIG_STM32_ADC1=y
|
||||
# CONFIG_STM32_ADC1 is not set
|
||||
# CONFIG_STM32_ADC2 is not set
|
||||
# CONFIG_STM32_ADC3 is not set
|
||||
CONFIG_STM32_BKPSRAM=y
|
||||
@@ -221,7 +221,7 @@ CONFIG_STM32_DMA2=y
|
||||
# CONFIG_STM32_ETHMAC is not set
|
||||
# CONFIG_STM32_FSMC is not set
|
||||
# CONFIG_STM32_HASH is not set
|
||||
# CONFIG_STM32_I2C1 is not set
|
||||
CONFIG_STM32_I2C1=y
|
||||
# CONFIG_STM32_I2C2 is not set
|
||||
CONFIG_STM32_I2C3=y
|
||||
CONFIG_STM32_OTGFS=y
|
||||
@@ -229,17 +229,17 @@ CONFIG_STM32_OTGFS=y
|
||||
CONFIG_STM32_PWR=y
|
||||
# CONFIG_STM32_RNG is not set
|
||||
# CONFIG_STM32_SDIO is not set
|
||||
# CONFIG_STM32_SPI1 is not set
|
||||
CONFIG_STM32_SPI1=y
|
||||
# CONFIG_STM32_SPI2 is not set
|
||||
CONFIG_STM32_SPI3=y
|
||||
CONFIG_STM32_SPI4=y
|
||||
# CONFIG_STM32_SPI3 is not set
|
||||
# CONFIG_STM32_SPI4 is not set
|
||||
# CONFIG_STM32_SPI5 is not set
|
||||
# CONFIG_STM32_SPI6 is not set
|
||||
CONFIG_STM32_SYSCFG=y
|
||||
CONFIG_STM32_TIM1=y
|
||||
# CONFIG_STM32_TIM2 is not set
|
||||
# CONFIG_STM32_TIM3 is not set
|
||||
CONFIG_STM32_TIM4=y
|
||||
# CONFIG_STM32_TIM4 is not set
|
||||
# CONFIG_STM32_TIM5 is not set
|
||||
# CONFIG_STM32_TIM6 is not set
|
||||
# CONFIG_STM32_TIM7 is not set
|
||||
@@ -254,13 +254,13 @@ CONFIG_STM32_USART1=y
|
||||
CONFIG_STM32_USART2=y
|
||||
CONFIG_STM32_USART3=y
|
||||
CONFIG_STM32_UART4=y
|
||||
# CONFIG_STM32_UART5 is not set
|
||||
CONFIG_STM32_UART5=y
|
||||
CONFIG_STM32_USART6=y
|
||||
CONFIG_STM32_UART7=y
|
||||
CONFIG_STM32_UART8=y
|
||||
# CONFIG_STM32_UART7 is not set
|
||||
# CONFIG_STM32_UART8 is not set
|
||||
# CONFIG_STM32_IWDG is not set
|
||||
CONFIG_STM32_WWDG=y
|
||||
CONFIG_STM32_ADC=y
|
||||
# CONFIG_STM32_ADC is not set
|
||||
CONFIG_STM32_SPI=y
|
||||
CONFIG_STM32_I2C=y
|
||||
|
||||
@@ -301,13 +301,14 @@ CONFIG_USART2_RXDMA=y
|
||||
CONFIG_USART3_RXDMA=y
|
||||
# CONFIG_UART4_RS485 is not set
|
||||
CONFIG_UART4_RXDMA=y
|
||||
# CONFIG_UART5_RS485 is not set
|
||||
CONFIG_UART5_RXDMA=y
|
||||
# CONFIG_USART6_RS485 is not set
|
||||
CONFIG_USART6_RXDMA=y
|
||||
# CONFIG_UART7_RS485 is not set
|
||||
CONFIG_UART7_RXDMA=y
|
||||
# CONFIG_UART7_RXDMA is not set
|
||||
# CONFIG_UART8_RS485 is not set
|
||||
CONFIG_UART8_RXDMA=y
|
||||
# CONFIG_UART8_RXDMA is not set
|
||||
CONFIG_SERIAL_DISABLE_REORDERING=y
|
||||
CONFIG_STM32_USART_SINGLEWIRE=y
|
||||
|
||||
@@ -507,7 +508,7 @@ CONFIG_MTD_BYTE_WRITE=y
|
||||
# CONFIG_MTD_AT45DB is not set
|
||||
# CONFIG_MTD_M25P is not set
|
||||
# CONFIG_MTD_SMART is not set
|
||||
CONFIG_MTD_RAMTRON=y
|
||||
# CONFIG_MTD_RAMTRON is not set
|
||||
# CONFIG_MTD_SST25 is not set
|
||||
# CONFIG_MTD_SST39FV is not set
|
||||
# CONFIG_MTD_W25 is not set
|
||||
@@ -520,8 +521,7 @@ CONFIG_SERIAL=y
|
||||
CONFIG_SERIAL_REMOVABLE=y
|
||||
# CONFIG_16550_UART is not set
|
||||
CONFIG_ARCH_HAVE_UART4=y
|
||||
CONFIG_ARCH_HAVE_UART7=y
|
||||
CONFIG_ARCH_HAVE_UART8=y
|
||||
CONFIG_ARCH_HAVE_UART5=y
|
||||
CONFIG_ARCH_HAVE_USART1=y
|
||||
CONFIG_ARCH_HAVE_USART2=y
|
||||
CONFIG_ARCH_HAVE_USART3=y
|
||||
@@ -534,9 +534,8 @@ CONFIG_SERIAL_NPOLLWAITERS=2
|
||||
# CONFIG_USART2_SERIAL_CONSOLE is not set
|
||||
# CONFIG_USART3_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART4_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART5_SERIAL_CONSOLE is not set
|
||||
CONFIG_USART6_SERIAL_CONSOLE=y
|
||||
# CONFIG_UART7_SERIAL_CONSOLE is not set
|
||||
# CONFIG_UART8_SERIAL_CONSOLE is not set
|
||||
# CONFIG_NO_SERIAL_CONSOLE is not set
|
||||
|
||||
#
|
||||
@@ -560,8 +559,8 @@ CONFIG_USART2_BAUD=57600
|
||||
CONFIG_USART2_BITS=8
|
||||
CONFIG_USART2_PARITY=0
|
||||
CONFIG_USART2_2STOP=0
|
||||
CONFIG_USART2_IFLOWCONTROL=n
|
||||
CONFIG_USART2_OFLOWCONTROL=n
|
||||
# CONFIG_USART2_IFLOWCONTROL is not set
|
||||
# CONFIG_USART2_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# USART3 Configuration
|
||||
@@ -572,8 +571,8 @@ CONFIG_USART3_BAUD=57600
|
||||
CONFIG_USART3_BITS=8
|
||||
CONFIG_USART3_PARITY=0
|
||||
CONFIG_USART3_2STOP=0
|
||||
CONFIG_USART3_IFLOWCONTROL=n
|
||||
CONFIG_USART3_OFLOWCONTROL=n
|
||||
# CONFIG_USART3_IFLOWCONTROL is not set
|
||||
# CONFIG_USART3_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART4 Configuration
|
||||
@@ -587,6 +586,18 @@ CONFIG_UART4_2STOP=0
|
||||
# CONFIG_UART4_IFLOWCONTROL is not set
|
||||
# CONFIG_UART4_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# UART5 Configuration
|
||||
#
|
||||
CONFIG_UART5_RXBUFSIZE=256
|
||||
CONFIG_UART5_TXBUFSIZE=256
|
||||
CONFIG_UART5_BAUD=115200
|
||||
CONFIG_UART5_BITS=8
|
||||
CONFIG_UART5_PARITY=0
|
||||
CONFIG_UART5_2STOP=0
|
||||
# CONFIG_UART5_IFLOWCONTROL is not set
|
||||
# CONFIG_UART5_OFLOWCONTROL is not set
|
||||
|
||||
#
|
||||
# USART6 Configuration
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user