From 8ca2e68d41aa28a1838a1876b7f81774b6ae5552 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Mon, 30 May 2022 01:00:04 +0300 Subject: [PATCH] f1_rev2: use ChibiOS serial driver for TS interface --- firmware/boards/f1_rev2/halconf.h | 4 ++-- firmware/boards/f1_rev2/mcuconf.h | 4 ++-- firmware/boards/f1_rev2/wideband_board_config.h | 8 ++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/firmware/boards/f1_rev2/halconf.h b/firmware/boards/f1_rev2/halconf.h index e040b51..8c2372c 100644 --- a/firmware/boards/f1_rev2/halconf.h +++ b/firmware/boards/f1_rev2/halconf.h @@ -142,7 +142,7 @@ * @brief Enables the SERIAL subsystem. */ #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) -#define HAL_USE_SERIAL FALSE +#define HAL_USE_SERIAL TRUE #endif /** @@ -177,7 +177,7 @@ * @brief Enables the UART subsystem. */ #if !defined(HAL_USE_UART) || defined(__DOXYGEN__) -#define HAL_USE_UART TRUE +#define HAL_USE_UART FALSE #endif /** diff --git a/firmware/boards/f1_rev2/mcuconf.h b/firmware/boards/f1_rev2/mcuconf.h index feccd54..01e2bdb 100644 --- a/firmware/boards/f1_rev2/mcuconf.h +++ b/firmware/boards/f1_rev2/mcuconf.h @@ -155,7 +155,7 @@ /* * SERIAL driver system settings. */ -#define STM32_SERIAL_USE_USART1 FALSE +#define STM32_SERIAL_USE_USART1 TRUE #define STM32_SERIAL_USE_USART2 FALSE #define STM32_SERIAL_USE_USART3 FALSE #define STM32_SERIAL_USE_UART4 FALSE @@ -189,7 +189,7 @@ /* * UART driver system settings. */ -#define STM32_UART_USE_USART1 TRUE +#define STM32_UART_USE_USART1 FALSE #define STM32_UART_USE_USART2 FALSE #define STM32_UART_USE_USART3 FALSE #define STM32_UART_USART1_IRQ_PRIORITY 12 diff --git a/firmware/boards/f1_rev2/wideband_board_config.h b/firmware/boards/f1_rev2/wideband_board_config.h index 6798ab9..8ff8e2b 100644 --- a/firmware/boards/f1_rev2/wideband_board_config.h +++ b/firmware/boards/f1_rev2/wideband_board_config.h @@ -39,3 +39,11 @@ // ******************************* // OpAmp with 82K + 160K #define AUXOUT_GAIN ((82.0 + 160.0) / 160.0) + +// ******************************* +// TunerStudio Primary Port +// ******************************* +//#define TS_PRIMARY_UART_PORT UARTD1 +//#define TS_PRIMARY_BAUDRATE 38400 +#define TS_PRIMARY_SERIAL_PORT SD1 +#define TS_PRIMARY_BAUDRATE 115200