Making UART/TTL pins configurable
This commit is contained in:
parent
3c8b28db0b
commit
23c0d8646f
|
@ -102,6 +102,10 @@ void startTsPort(ts_channel_s *tsChannel) {
|
|||
if (CONFIGB(useSerialPort)) {
|
||||
|
||||
print("TunerStudio over USART");
|
||||
/**
|
||||
* We have hard-coded USB serial console so that it would be clear how to connect to each specific board,
|
||||
* but for UART serial we allow users to change settings.
|
||||
*/
|
||||
efiSetPadMode("tunerstudio rx", engineConfiguration->binarySerialRxPin, PAL_MODE_ALTERNATE(TS_SERIAL_AF));
|
||||
efiSetPadMode("tunerstudio tx", engineConfiguration->binarySerialTxPin, PAL_MODE_ALTERNATE(TS_SERIAL_AF));
|
||||
|
||||
|
|
|
@ -819,6 +819,6 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20191202;
|
||||
return 20191206;
|
||||
}
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
|
|
|
@ -85,7 +85,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Wed Dec 04 00:37:59 EST 2019
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Sat Dec 07 21:20:32 EST 2019
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -3215,7 +3215,9 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
; Board->Connection
|
||||
dialog = tsPort, "TunerStudio Port"
|
||||
field = "tunerStudioSerialSpeed", tunerStudioSerialSpeed
|
||||
field = "Use PC10/PC11 serial?", useSerialPort
|
||||
field = "Use UART/TTL serial?", useSerialPort
|
||||
field = "RX pin", binarySerialRxPin, {useSerialPort == 1}
|
||||
field = "TX pin", binarySerialTxPin, {useSerialPort == 1}
|
||||
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
|
||||
|
||||
dialog = canBus, "CAN Bus"
|
||||
|
|
|
@ -2191,7 +2191,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
; Board->Connection
|
||||
dialog = tsPort, "TunerStudio Port"
|
||||
field = "tunerStudioSerialSpeed", tunerStudioSerialSpeed
|
||||
field = "Use PC10/PC11 serial?", useSerialPort
|
||||
field = "Use UART/TTL serial?", useSerialPort
|
||||
field = "RX pin", binarySerialRxPin, {useSerialPort == 1}
|
||||
field = "TX pin", binarySerialTxPin, {useSerialPort == 1}
|
||||
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
|
||||
|
|
|
@ -85,7 +85,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Wed Dec 04 00:38:05 EST 2019
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Sat Dec 07 21:20:38 EST 2019
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -3215,7 +3215,9 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
; Board->Connection
|
||||
dialog = tsPort, "TunerStudio Port"
|
||||
field = "tunerStudioSerialSpeed", tunerStudioSerialSpeed
|
||||
field = "Use PC10/PC11 serial?", useSerialPort
|
||||
field = "Use UART/TTL serial?", useSerialPort
|
||||
field = "RX pin", binarySerialRxPin, {useSerialPort == 1}
|
||||
field = "TX pin", binarySerialTxPin, {useSerialPort == 1}
|
||||
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
|
||||
|
||||
dialog = canBus, "CAN Bus"
|
||||
|
|
|
@ -85,7 +85,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Wed Dec 04 00:38:02 EST 2019
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Sat Dec 07 21:20:35 EST 2019
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -3199,7 +3199,9 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
; Board->Connection
|
||||
dialog = tsPort, "TunerStudio Port"
|
||||
field = "tunerStudioSerialSpeed", tunerStudioSerialSpeed
|
||||
field = "Use PC10/PC11 serial?", useSerialPort
|
||||
field = "Use UART/TTL serial?", useSerialPort
|
||||
field = "RX pin", binarySerialRxPin, {useSerialPort == 1}
|
||||
field = "TX pin", binarySerialTxPin, {useSerialPort == 1}
|
||||
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
|
||||
|
||||
dialog = canBus, "CAN Bus"
|
||||
|
|
|
@ -85,7 +85,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Wed Dec 04 00:38:08 EST 2019
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Sat Dec 07 21:20:41 EST 2019
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -3211,7 +3211,9 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
; Board->Connection
|
||||
dialog = tsPort, "TunerStudio Port"
|
||||
field = "tunerStudioSerialSpeed", tunerStudioSerialSpeed
|
||||
field = "Use PC10/PC11 serial?", useSerialPort
|
||||
field = "Use UART/TTL serial?", useSerialPort
|
||||
field = "RX pin", binarySerialRxPin, {useSerialPort == 1}
|
||||
field = "TX pin", binarySerialTxPin, {useSerialPort == 1}
|
||||
field = "uartConsoleSerialSpeed", uartConsoleSerialSpeed
|
||||
|
||||
dialog = canBus, "CAN Bus"
|
||||
|
|
Loading…
Reference in New Issue