HAL_ChibiOS: disable USART1 till USB problem solved

using USART1 causes USB disconnects. The behaviour is like CTS/RTS is
enabled on USART1, but it is disabled.
This commit is contained in:
Andrew Tridgell 2018-02-07 16:23:11 +11:00
parent d0eb2970c7
commit 30e4323c6d

View File

@ -22,14 +22,14 @@ FLASH_SIZE_KB 1024
# board voltage # board voltage
STM32_VDD 330U STM32_VDD 330U
STDOUT_SERIAL SD1 STDOUT_SERIAL SD3
STDOUT_BAUDRATE 115200 STDOUT_BAUDRATE 57600
# only one I2C bus # only one I2C bus
I2C_ORDER I2C1 I2C_ORDER I2C1
# order of UARTs (and USB) # order of UARTs (and USB)
UART_ORDER OTG1 USART6 USART1 USART3 UART_ORDER OTG1 USART6 USART3
# we need to add support for N channels for RCIN # we need to add support for N channels for RCIN
# PB14 TIM8_CH2 TIM8 RCIN PULLUP LOW DMA_CH0 # PB14 TIM8_CH2 TIM8 RCIN PULLUP LOW DMA_CH0
@ -51,13 +51,15 @@ PB4 LED_RED OUTPUT LOW GPIO(2)
PC6 USART6_TX USART6 PC6 USART6_TX USART6
PC7 USART6_RX USART6 PC7 USART6_RX USART6
# this is a very strange workaround for a USB problem. Needs investigating
define GCS_SETUP_UART_FIRST 2
# flexi port, telem2 (can also be I2C2) # flexi port, telem2 (can also be I2C2)
PB10 USART3_TX USART3 PB10 USART3_TX USART3
PB11 USART3_RX USART3 PB11 USART3_RX USART3
# main port. This should be telem1, but is disabled as it interferes
# #with USB for some unknown reason
#PA9 USART1_TX USART1
#PA10 USART1_RX USART1
# alternative config # alternative config
# PB10 I2C2_SCL I2C2 # PB10 I2C2_SCL I2C2
# PB11 I2C2_SDA I2C2 # PB11 I2C2_SDA I2C2
@ -75,12 +77,10 @@ PC12 SPI3_MOSI SPI3
# IRQ for MPU6000 # IRQ for MPU6000
PC4 EXTI_MPU6000 INPUT PC4 EXTI_MPU6000 INPUT
PA9 USART1_TX USART1
PA10 USART1_RX USART1
# PA10 IO-debug-console # PA10 IO-debug-console
PA11 OTG_FS_DM OTG1 PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1 PA12 OTG_FS_DP OTG1
PA13 JTMS-SWDIO SWD PA13 JTMS-SWDIO SWD
PA14 JTCK-SWCLK SWD PA14 JTCK-SWCLK SWD
@ -126,3 +126,4 @@ define HAL_BARO_MS5611_I2C_ADDR 0x77
# SPI devices # SPI devices
SPIDEV mpu6000 SPI1 DEVID1 MPU_CS MODE3 1*MHZ 8*MHZ SPIDEV mpu6000 SPI1 DEVID1 MPU_CS MODE3 1*MHZ 8*MHZ
SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 1*MHZ 8*MHZ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 1*MHZ 8*MHZ