mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
UCANS32K146 Fix CAN1 STB pin
This commit is contained in:
committed by
David Sidrane
parent
02e11eddce
commit
3ea492b7a2
@@ -159,10 +159,12 @@ int s32k1xx_bringup(void)
|
|||||||
if (s32k1xx_gpioread(BOARD_REVISION_DETECT_PIN)) {
|
if (s32k1xx_gpioread(BOARD_REVISION_DETECT_PIN)) {
|
||||||
/* STB high -> active CAN phy */
|
/* STB high -> active CAN phy */
|
||||||
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ONE);
|
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ONE);
|
||||||
|
s32k1xx_pinconfig(PIN_CAN1_STB | GPIO_OUTPUT_ONE);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* STB low -> active CAN phy */
|
/* STB low -> active CAN phy */
|
||||||
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ZERO);
|
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ZERO);
|
||||||
|
s32k1xx_pinconfig(PIN_CAN1_STB | GPIO_OUTPUT_ZERO);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user