stm32/socketcan: fixes for arm_netinitialize
This commit is contained in:
parent
ca9aeeec1f
commit
27db9558de
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user