stm32/socketcan: fixes for arm_netinitialize

This commit is contained in:
raiden00pl 2022-10-18 14:53:07 +02:00 committed by Alan Carvalho de Assis
parent ca9aeeec1f
commit 27db9558de
2 changed files with 8 additions and 4 deletions

View File

@ -2477,11 +2477,11 @@ errout:
void arm_netinitialize(void)
{
#ifdef CONFIG_STM32_CAN1
stm32_cansockinitialize(0);
stm32_cansockinitialize(1);
#endif
#ifdef CONFIG_STM32_CAN2
stm32_cansockinitialize(1);
stm32_cansockinitialize(2);
#endif
}
#endif

View File

@ -3309,11 +3309,15 @@ errout:
void arm_netinitialize(void)
{
#ifdef CONFIG_STM32_CAN1
stm32_fdcansockinitialize(0);
stm32_fdcansockinitialize(FDCAN1);
#endif
#ifdef CONFIG_STM32_CAN2
stm32_fdcansockinitialize(1);
stm32_fdcansockinitialize(FDCAN2);
#endif
#ifdef CONFIG_STM32_CAN3
stm32_fdcansockinitialize(FDCAN3);
#endif
}
#endif