/*---------------------------------------------------------------------------- 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) { //CTC Interrupt on compare match enable TIMSK |= (1 << OCIE1A); //Setzen des Prescaler auf 1024, CTC TCCR1B |= (1< MAX_TCP_ERRORCOUNT) { DEBUG("Eintrag wird gelöscht MAX_ERROR STACK:%i\r\n",index); ETH_INT_DISABLE; tcp_entry[index].status = RST_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--; } } } }