arch/s32k3xx: initializers clobbering rx_pin instead of enable_high

The `rx_pin` configuration when `CONFIG_S32K3XX_FLEXCAN2` is defined is
overwritten if `PIN_CAN2_ENABLE` is defined, breaking the flexcan config
for S32K3 MCU.

Signed-off-by: Javier Alonso <javieralonso@geotab.com>
This commit is contained in:
Javier Alonso 2026-08-06 17:03:39 +02:00 committed by Alin Jerpelea
parent 2a777381d6
commit f8cf5f9d4e

View file

@ -305,11 +305,11 @@ static const struct flexcan_config_s s32k3xx_flexcan2_config =
.rx_pin = PIN_CAN2_RX,
.no_buffers = 64,
#ifdef PIN_CAN2_ENABLE
.enable_pin = PIN_CAN2_ENABLE,
.enable_pin = PIN_CAN2_ENABLE,
.enable_high = CAN2_ENABLE_OUT,
#else
.enable_pin = 0,
.rx_pin = 0,
.enable_pin = 0,
.enable_high = 0,
#endif
#ifdef PIN_CAN2_STB
.stb_pin = PIN_CAN2_STB,