diff --git a/hardware/arduino/sam/libraries/CAN/sn65hvd234.c b/hardware/arduino/sam/libraries/CAN/sn65hvd234.c index e4001fe2e..aeeb8d658 100644 --- a/hardware/arduino/sam/libraries/CAN/sn65hvd234.c +++ b/hardware/arduino/sam/libraries/CAN/sn65hvd234.c @@ -33,7 +33,7 @@ * */ -#include "board.h" +#include "sn65hvd234.h" #include @@ -69,7 +69,7 @@ extern uint32_t SN65HVD234_SetRs( SSN65HVD234_Data* pComponent, Pio* pPIO_Rs, ui pComponent->pPIO_Rs=pPIO_Rs ; pComponent->dwPin_Rs=dwPin_Rs ; - PIO_SetOutput( pPIO_Rs, dwPin_Rs, PIO_PULLUP|PIO_OUTPUT_LOW ) ; + PIO_SetOutput( pPIO_Rs, dwPin_Rs, 0, 0, 1 ) ; return 0u ; } @@ -88,7 +88,7 @@ extern uint32_t SN65HVD234_SetEN( SSN65HVD234_Data* pComponent, Pio* pPIO_EN, ui pComponent->pPIO_EN=pPIO_EN ; pComponent->dwPin_EN=dwPin_EN ; - PIO_SetOutput( pPIO_EN, dwPin_EN, PIO_PULLUP|PIO_OUTPUT_LOW ) ; + PIO_SetOutput( pPIO_EN, dwPin_EN, 0, 0, 1 ) ; return 0u ; } diff --git a/hardware/arduino/sam/libraries/CAN/sn65hvd234.h b/hardware/arduino/sam/libraries/CAN/sn65hvd234.h index 5da912660..3597ef397 100644 --- a/hardware/arduino/sam/libraries/CAN/sn65hvd234.h +++ b/hardware/arduino/sam/libraries/CAN/sn65hvd234.h @@ -35,7 +35,7 @@ #ifndef _CAN_SN65HVD234_ #define _CAN_SN65HVD234_ -#include "board.h" +#include "variant.h" #ifdef __cplusplus extern "C" {