fix: Correct UART ports for Battery Swapping Station
parent
49357f5d62
commit
ec5ae72cab
|
|
@ -74,14 +74,14 @@ IVEC_EcuCommonErr_e xECU_UARTInit(McalUartHandle_s* prvUartHandle, uint32_t spee
|
||||||
}
|
}
|
||||||
|
|
||||||
IVEC_ECU_LOG(LOG_STRING, "Initilising UART");
|
IVEC_ECU_LOG(LOG_STRING, "Initilising UART");
|
||||||
#if (UART_PIN_SELECTION == 1 || ((uartCount == 1) && (UART_PIN_SELECTION == 3)))
|
#if (UART_PIN_SELECTION == 1 || ((uartCount == 2) && (UART_PIN_SELECTION == 3)))
|
||||||
prvUartHandle->eUartPortNumber = mcalUART_PORT3;
|
prvUartHandle->eUartPortNumber = mcalUART_PORT3;
|
||||||
uartCount = 2;
|
|
||||||
|
|
||||||
#elif (UART_PIN_SELECTION == 2 || ((uartCount == 2) && (UART_PIN_SELECTION == 3)))
|
|
||||||
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
|
|
||||||
uartCount = 1;
|
uartCount = 1;
|
||||||
|
|
||||||
|
#elif (UART_PIN_SELECTION == 2 || ((uartCount == 1) && (UART_PIN_SELECTION == 3)))
|
||||||
|
prvUartHandle->eUartPortNumber = mcalUART_PORT2;
|
||||||
|
uartCount = 2;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
prvUartHandle->pvUartRecvCallback = __prv_vEcu_CANOverUartMsgCallback;
|
prvUartHandle->pvUartRecvCallback = __prv_vEcu_CANOverUartMsgCallback;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue