X-Git-Url: http://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=DS2423%2FDS2423.c;fp=DS2423%2FDS2423.c;h=6a37778f320f53c96ac5b19ce481a7c3e7359e25;hp=ccc2d30a310d7249a01e822f63a5499dad5ada39;hb=59518e632e2269fece0ce6a518e519b3a617ad16;hpb=485bc58764a5b2a1296dee25aadb42316e8defe0 diff --git a/DS2423/DS2423.c b/DS2423/DS2423.c index ccc2d30..6a37778 100644 --- a/DS2423/DS2423.c +++ b/DS2423/DS2423.c @@ -32,7 +32,6 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define _4_COUNTERS_ -//#define _EEPROM_SAVE_ #define _CPULLUP_ #define F_CPU 8000000UL @@ -43,13 +42,6 @@ #include -#if defined(__AVR_ATtiny25__)||defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) - -#if defined(_4_COUNTERS_)&&defined(_EEPROM_SAVE_) -#error on ATtinyX5 you can not enable four counters and EEPROM save -#endif -#endif - extern void OWINIT(); @@ -91,20 +83,6 @@ volatile counters_t counters; volatile uint8_t istat; -#if defined(__AVR_ATtiny25__)||defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) -#define PCINT_VECTOR PCINT0_vect -#define PIN_REG PINB -#define PIN_DDR DDRB -#define PIN_CH2 (1<