Skip to content

Commit d259216

Browse files
committed
[sam] CAN component compiling with Arduino API
1 parent e8c57c4 commit d259216

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hardware/arduino/sam/libraries/CAN/sn65hvd234.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
*/
3535

36-
#include "board.h"
36+
#include "sn65hvd234.h"
3737

3838
#include <string.h>
3939

@@ -69,7 +69,7 @@ extern uint32_t SN65HVD234_SetRs( SSN65HVD234_Data* pComponent, Pio* pPIO_Rs, ui
6969
pComponent->pPIO_Rs=pPIO_Rs ;
7070
pComponent->dwPin_Rs=dwPin_Rs ;
7171

72-
PIO_SetOutput( pPIO_Rs, dwPin_Rs, PIO_PULLUP|PIO_OUTPUT_LOW ) ;
72+
PIO_SetOutput( pPIO_Rs, dwPin_Rs, 0, 0, 1 ) ;
7373

7474
return 0u ;
7575
}
@@ -88,7 +88,7 @@ extern uint32_t SN65HVD234_SetEN( SSN65HVD234_Data* pComponent, Pio* pPIO_EN, ui
8888
pComponent->pPIO_EN=pPIO_EN ;
8989
pComponent->dwPin_EN=dwPin_EN ;
9090

91-
PIO_SetOutput( pPIO_EN, dwPin_EN, PIO_PULLUP|PIO_OUTPUT_LOW ) ;
91+
PIO_SetOutput( pPIO_EN, dwPin_EN, 0, 0, 1 ) ;
9292

9393
return 0u ;
9494
}

hardware/arduino/sam/libraries/CAN/sn65hvd234.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#ifndef _CAN_SN65HVD234_
3636
#define _CAN_SN65HVD234_
3737

38-
#include "board.h"
38+
#include "variant.h"
3939

4040
#ifdef __cplusplus
4141
extern "C" {

0 commit comments

Comments
 (0)