dual-rev1 Secondary uart settings (#247)

* f1_dual_rev1: secondary TS port (BT)

* f1_dual_rev1: two TS serial ports: primary over BT, secondary over J3

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-05-29 17:45:37 -04:00 committed by GitHub
parent 025b687673
commit f8ad24484f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 4 deletions

View File

@ -49,5 +49,6 @@ void __early_init(void) {
*/
void boardInit(void) {
AFIO->MAPR |= AFIO_MAPR_I2C1_REMAP | /* remap I2C1 to PB8, PB9 */
AFIO_MAPR_USART3_REMAP_0 | /* remap USART3 to PC10, PC11 */
AFIO_MAPR_SWJ_CFG_1; /* JTAG-DP disabled, SW-DP enabled, PA13, PA14 are only used */
}

View File

@ -167,7 +167,7 @@
*/
#define STM32_SERIAL_USE_USART1 TRUE
#define STM32_SERIAL_USE_USART2 FALSE
#define STM32_SERIAL_USE_USART3 FALSE
#define STM32_SERIAL_USE_USART3 TRUE
#define STM32_SERIAL_USE_UART4 FALSE
#define STM32_SERIAL_USE_UART5 FALSE
#define STM32_SERIAL_USART1_PRIORITY 12

View File

@ -58,12 +58,24 @@
#define HEATER_MAX_DUTY (0.85)
// *******************************
// TunerStudio Primary Port
// TunerStudio Primary Port - Routed to BlueTooth
// *******************************
#define TS_PRIMARY_SERIAL_PORT SD1
#define TS_PRIMARY_SERIAL_PORT SD3
#define TS_PRIMARY_BAUDRATE 115200
// TODO: add BT port on PC10, PC11 - UART4/USART3
#if 1
// *******************************
// TunerStudio Secondary Port - J3 connector (2x2)
// *******************************
#define TS_SECONDARY_SERIAL_PORT SD1
#define TS_SECONDARY_BAUDRATE 115200
#else
// *******************************
// Debug serial device
// *******************************
#define DEBUG_SERIAL_PORT SD1
#define DEBUG_SERIAL_BAUDRATE 115200
#endif
// *******************************
// MAX31855 spi port