From 2842063146e026afa37ecf47c7094313572cff58 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Mar 2019 11:30:22 +1100 Subject: [PATCH] HAL_ChibiOS: optimize CubeYellow build and fixed comment in CubeOrange --- libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat index 2571ce8adf..6e6233a3ae 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat @@ -37,7 +37,7 @@ UART_ORDER OTG1 UART4 USART2 USART3 UART8 UART7 # 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 for IOMCU (disabled for now) +# UART for IOMCU IOMCU_UART USART6 # UART4 serial GPS diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat index d116017038..0e1daff307 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat @@ -32,6 +32,8 @@ define STM32_PLLQ_VALUE 9 # board ID for firmware load APJ_BOARD_ID 120 +# with 2M flash we can afford to optimize for speed +env OPTIMIZE -O3 # on some boards you will need to also set the various PLL values. See # the defaults in common/mcuconf.h, and use the define mechanism # explained later in this file to override values suitable for your