HAL_ChibiOS: hwdef: add support for dual cdc on CubeYellow and CubeOrange

This commit is contained in:
Siddharth Purohit 2019-04-08 18:58:29 +05:30 committed by Andrew Tridgell
parent 2f0d1336e6
commit dcf17e5bc2
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,7 @@ define HAL_STORAGE_SIZE 16384
I2C_ORDER I2C2 I2C1 I2C_ORDER I2C2 I2C1
# order of UARTs (and USB) # order of UARTs (and USB)
UART_ORDER OTG1 UART4 USART2 USART3 UART8 UART7 UART_ORDER OTG1 UART4 USART2 USART3 UART8 UART7 OTG2
# If the board has an IOMCU connected via a UART then this defines the # If the board has an IOMCU connected via a UART then this defines the
# UART to talk to that MCU. Leave it out for boards with no IOMCU. # UART to talk to that MCU. Leave it out for boards with no IOMCU.
@ -299,6 +299,7 @@ define HAL_BATT_CURR_PIN 15
define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_VOLT_SCALE 10.1
define HAL_BATT_CURR_SCALE 17.0 define HAL_BATT_CURR_SCALE 17.0
define HAL_GPIO_PWM_VOLT_PIN 3 define HAL_GPIO_PWM_VOLT_PIN 3
define HAL_HAVE_DUAL_USB_CDC 1
# List of files to put in ROMFS. For fmuv3 we need an IO firmware so # List of files to put in ROMFS. For fmuv3 we need an IO firmware so
# we can automatically update the IOMCU firmware on boot. The format # we can automatically update the IOMCU firmware on boot. The format

View File

@ -110,7 +110,7 @@ I2C_ORDER I2C2 I2C1
# 6) SERIAL5: extra UART (usually RTOS debug console) # 6) SERIAL5: extra UART (usually RTOS debug console)
# order of UARTs (and USB) # order of UARTs (and USB)
UART_ORDER OTG1 UART4 USART2 USART3 UART8 UART7 UART_ORDER OTG1 UART4 USART2 USART3 UART8 UART7 OTG2
# if the board has an IOMCU connected via a UART then this defines the # if the board has an IOMCU connected via a UART then this defines the
# UART to talk to that MCU. Leave it out for boards with no IOMCU # UART to talk to that MCU. Leave it out for boards with no IOMCU
@ -471,6 +471,7 @@ define HAL_BATT_CURR_PIN 3
define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_VOLT_SCALE 10.1
define HAL_BATT_CURR_SCALE 17.0 define HAL_BATT_CURR_SCALE 17.0
define HAL_GPIO_PWM_VOLT_PIN 3 define HAL_GPIO_PWM_VOLT_PIN 3
define HAL_HAVE_DUAL_USB_CDC 1
# this defines the default maximum clock on I2C devices. # this defines the default maximum clock on I2C devices.
define HAL_I2C_MAX_CLOCK 100000 define HAL_I2C_MAX_CLOCK 100000