mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 22:53:01 +00:00
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:
parent
2a777381d6
commit
f8cf5f9d4e
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue