fix: can baudrate change from 250 to 500

stable
Rakshitavecmocon 2024-10-27 23:34:20 +05:30
parent 03c4f12a70
commit 4a623a0def
1 changed files with 3 additions and 1 deletions

4
main.c
View File

@ -76,6 +76,8 @@ void CANDataProcess()
{
IVEC_EcuCommonErr_e retCode = commonECU_FAIL;
can_buff_t xBuff = { 0x00 };
retCode = xECU_CANGetData(&xBuff);
if(retCode == commonECU_SUCCESS)
{
@ -91,7 +93,7 @@ int main(void)
xMCAL_SYSTICK_INIT(Period_1ms);
g_uartSpeed = mcalUART_BAUD_115200;
g_canSpeed = BAUD_250;
g_canSpeed = BAUD_500;
xECU_UARTInit(&prvUartHandle, g_uartSpeed);
xECU_CANInit(CANFD0,g_canSpeed);