mirror of
https://github.com/Oleg-Stepanenko-owo/IEBUS
synced 2025-06-07 07:56:10 +00:00
47 lines
938 B
C
47 lines
938 B
C
/*
|
|
config.h - AVCLan driver config
|
|
Created by Kochetkov Aleksey, 04.08.2010
|
|
*/
|
|
#define IEBUS_VERSION "0.4"
|
|
|
|
// type of AVCLan hardwire driver
|
|
#define AVCLAN_PCA82C250
|
|
|
|
// maximum number of attempts to send a message
|
|
#define MAXSENDATTEMP 3
|
|
|
|
//********** arduino & driver based on PCA82C250 **********
|
|
#ifdef AVCLAN_PCA82C250
|
|
#define AVCLANDRIVER_TYPE "Arduino - PCA82C250"
|
|
// define out pin (pin 8 arduino)
|
|
#define DATAOUT_DDR DDRD
|
|
#define DATAOUT_PORT PORTD
|
|
#define DATAOUT_PIN PIND
|
|
#define DATAOUT 7
|
|
|
|
// define in pin (pin 9 arduino)
|
|
#define DATAIN_DDR DDRD
|
|
#define DATAIN_PORT PORTD
|
|
#define DATAIN_PIN PIND
|
|
#define DATAIN 6
|
|
|
|
// LED connected to digital pin 13
|
|
#define LED_DDR DDRC
|
|
#define LED_PORT PORTC
|
|
#define LED_PIN PINC
|
|
//#define LED_OUT 5
|
|
|
|
// Commutate pin 11
|
|
#define COMMUT_OUT 1
|
|
|
|
|
|
// AZFM board activate
|
|
#define AZFM_INIT
|
|
#define AZFM_ON
|
|
#define AZFM_OFF
|
|
|
|
#endif
|
|
|
|
|
|
|