UCANS32K146 Fix CAN1 STB pin

This commit is contained in:
Peter van der Perk 2022-05-17 11:21:17 +02:00 committed by David Sidrane
parent 02e11eddce
commit 3ea492b7a2
1 changed files with 2 additions and 0 deletions

View File

@ -159,10 +159,12 @@ int s32k1xx_bringup(void)
if (s32k1xx_gpioread(BOARD_REVISION_DETECT_PIN)) {
/* STB high -> active CAN phy */
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ONE);
s32k1xx_pinconfig(PIN_CAN1_STB | GPIO_OUTPUT_ONE);
} else {
/* STB low -> active CAN phy */
s32k1xx_pinconfig(PIN_CAN0_STB | GPIO_OUTPUT_ZERO);
s32k1xx_pinconfig(PIN_CAN1_STB | GPIO_OUTPUT_ZERO);
}
#endif