X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=DS2423_DS2423%2FDS2423_DS2423.c;h=916685069740fc2bb224f1fce2753ebdcbcefea6;hp=68fb0100239d5d68314199191a5d171ef822e9fd;hb=refs%2Fheads%2Fmaster;hpb=485bc58764a5b2a1296dee25aadb42316e8defe0 diff --git a/DS2423_DS2423/DS2423_DS2423.c b/DS2423_DS2423/DS2423_DS2423.c index 68fb010..9166850 100644 --- a/DS2423_DS2423/DS2423_DS2423.c +++ b/DS2423_DS2423/DS2423_DS2423.c @@ -43,11 +43,14 @@ extern void OWINIT(void); extern void EXTERN_SLEEP(void); + //#define FHEM_PLATINE +//#define JOE_M +#define W1DAQ volatile uint8_t owid1[8]={0x1D, 0x40, 0xDA, 0x84, 0x00, 0x00, 0x05, 0xBD};/**/ volatile uint8_t owid2[8]={0x1D, 0x41, 0xDA, 0x84, 0x00, 0x00, 0x05, 0x8A};/**/ -#if RAMEND>260 //defined(__AVR_ATtiny84__) ||defined(__AVR_ATtiny84A__) +#if RAMEND>260 //defined(__AVR_ATtiny84__) ||defined(__AVR_ATtiny84A__) uint8_t config_info1[26]={9,13,9,13,9,13,9,13,0x02,19,19,19,19,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; //+2 for CRC uint8_t config_info2[26]={9,13,9,13,9,13,9,13,0x02,19,19,19,19,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; //+2 for CRC #endif @@ -75,7 +78,7 @@ typedef union { counterpack_t pack1; //The Memory of both Chips is the same, beause of the small memory of ATTiny44 -#define pack2 pack1 +#define pack2 pack1 volatile uint8_t lastcps; typedef union { @@ -102,7 +105,9 @@ volatile uint8_t changefromeeprom; //LEDS #define LPIN_CH2 (1<Ruecksetzen @@ -281,10 +309,21 @@ int main(void){ //count Resets changefromeeprom=1; } } -#endif + #endif + if (((TIMSK0 & (1<