/*---------------------------------------------------------------------------- Copyright: Radig Ulrich mailto: mail@ulrichradig.de Author: Radig Ulrich Remarks: known Problems: none Version: 24.10.2007 Description: Timer Routinen ----------------------------------------------------------------------------*/ #include "timer.h" //---------------------------------------------------------------------------- //Diese Routine startet und inizialisiert den Timer void timer_init (void) { #if EXTCLOCK==1 #if defined (__AVR_ATmega644__) TIMSK2 = 0x00; ASSR |= (1< MAX_TCP_ERRORCOUNT) { DEBUG("Eintrag wird entfernt MAX_ERROR STACK:%i\r\n",index); ETH_INT_DISABLE; tcp_entry[index].status = RST_FLAG | ACK_FLAG; create_new_tcp_packet(0,index); ETH_INT_ENABLE; tcp_index_del(index); } else { DEBUG("Packet wird erneut gesendet STACK:%i\r\n",index); find_and_start (index); } } } else { if (tcp_entry[index].time != TCP_TIME_OFF) { tcp_entry[index].time--; } } } }