[sam] CAN component compiling with Arduino API

This commit is contained in:
Thibaut VIARD 2013-01-27 17:46:38 +01:00
parent e8c57c4f18
commit d25921692a
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@
*
*/
#include "board.h"
#include "sn65hvd234.h"
#include <string.h>
@ -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 ;
}

View File

@ -35,7 +35,7 @@
#ifndef _CAN_SN65HVD234_
#define _CAN_SN65HVD234_
#include "board.h"
#include "variant.h"
#ifdef __cplusplus
extern "C" {