f1_rev2: use ChibiOS serial driver for TS interface

This commit is contained in:
Andrey Gusakov 2022-05-30 01:00:04 +03:00
parent e2b2657fd9
commit 8ca2e68d41
3 changed files with 12 additions and 4 deletions

View File

@ -142,7 +142,7 @@
* @brief Enables the SERIAL subsystem. * @brief Enables the SERIAL subsystem.
*/ */
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) #if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
#define HAL_USE_SERIAL FALSE #define HAL_USE_SERIAL TRUE
#endif #endif
/** /**
@ -177,7 +177,7 @@
* @brief Enables the UART subsystem. * @brief Enables the UART subsystem.
*/ */
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__) #if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
#define HAL_USE_UART TRUE #define HAL_USE_UART FALSE
#endif #endif
/** /**

View File

@ -155,7 +155,7 @@
/* /*
* SERIAL driver system settings. * 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_USART2 FALSE
#define STM32_SERIAL_USE_USART3 FALSE #define STM32_SERIAL_USE_USART3 FALSE
#define STM32_SERIAL_USE_UART4 FALSE #define STM32_SERIAL_USE_UART4 FALSE
@ -189,7 +189,7 @@
/* /*
* UART driver system settings. * 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_USART2 FALSE
#define STM32_UART_USE_USART3 FALSE #define STM32_UART_USE_USART3 FALSE
#define STM32_UART_USART1_IRQ_PRIORITY 12 #define STM32_UART_USART1_IRQ_PRIORITY 12

View File

@ -39,3 +39,11 @@
// ******************************* // *******************************
// OpAmp with 82K + 160K // OpAmp with 82K + 160K
#define AUXOUT_GAIN ((82.0 + 160.0) / 160.0) #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