Welcome to mirror list, hosted at ThFree Co, Russian Federation.

onewire_config.h - github.com/ClusterM/ibutton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 326ee0af9b586c17b770eca53e3b159e03da160e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __onewire_config_h_included__
#define __onewire_config_h_included__

#include "bits.h"

#define ONEWIRE_PORT PORTD
#define ONEWIRE_DDR DDRD
#define ONEWIRE_PIN PIND
#define ONEWIRE_MASTER_TX_PIN 5
#define ONEWIRE_MASTER_RX_PIN 6

#define ONEWIRE_TIMER_INIT { set_bit(TCCR1B, CS11); unset_bit2(TCCR1B, CS12, CS10); } // 8x timer
#define ONEWIRE_TIMER_REG TCNT1
#define ONEWIRE_USEC (F_CPU / 8000000UL)

//#define ONEWIRE_SEARCH_SUPPORT

#endif