/[H8]/trunk/PIC/Demo trimmet/StackTsk.c
ViewVC logotype

Diff of /trunk/PIC/Demo trimmet/StackTsk.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 95 by hedin, Wed May 16 15:46:08 2007 UTC revision 96 by hedin, Tue May 22 06:41:06 2007 UTC
# Line 57  Line 57 
57  #include "mac.h"  #include "mac.h"
58  #include "ip.h"  #include "ip.h"
59    
60  //#if defined(STACK_USE_TCP)  #if defined(STACK_USE_TCP)
61  #include "tcp.h"  #include "tcp.h"
62  //#endif  #endif
63    
64  #if defined(STACK_USE_HTTP_SERVER)  #if defined(STACK_USE_HTTP_SERVER)
65  #include "http.h"  #include "http.h"
# Line 139  void StackInit(void) Line 139  void StackInit(void)
139      UDPInit();      UDPInit();
140  #endif  #endif
141    
142  //#if defined(STACK_USE_TCP)  #if defined(STACK_USE_TCP)
143      TCPInit();      TCPInit();
144  //#endif  #endif
145    
146  }  }
147    
# Line 276  void StackTask(void) Line 276  void StackTask(void)
276  #endif  #endif
277                  }                  }
278    
279  //#if defined(STACK_USE_TCP)  #if defined(STACK_USE_TCP)
280                  else if ( type.IPFrameType == IP_PROT_TCP )                  else if ( type.IPFrameType == IP_PROT_TCP )
281                      smStack = SM_STACK_TCP;                      smStack = SM_STACK_TCP;
282  //#endif  #endif
283    
284  #if defined(STACK_USE_UDP)  #if defined(STACK_USE_UDP)
285                  else if ( type.IPFrameType == IP_PROT_UDP )                  else if ( type.IPFrameType == IP_PROT_UDP )
# Line 309  void StackTask(void) Line 309  void StackTask(void)
309              break;              break;
310  #endif  #endif
311    
312  //#if defined(STACK_USE_TCP)  #if defined(STACK_USE_TCP)
313          case SM_STACK_TCP:          case SM_STACK_TCP:
314              if ( TCPProcess(&remoteNode, dataCount) )              if ( TCPProcess(&remoteNode, dataCount) )
315                  smStack = SM_STACK_IDLE;                  smStack = SM_STACK_IDLE;
316              lbContinue = FALSE;              lbContinue = FALSE;
317              break;              break;
318  //#endif  #endif
319    
320          case SM_STACK_ICMP:          case SM_STACK_ICMP:
321              smStack = SM_STACK_IDLE;              smStack = SM_STACK_IDLE;
# Line 368  void StackTask(void) Line 368  void StackTask(void)
368    
369      }      }
370    
371  //#if defined(STACK_USE_TCP)  #if defined(STACK_USE_TCP)
372      // Perform timed TCP FSM.      // Perform timed TCP FSM.
373      TCPTick();      TCPTick();
374  //#endif  #endif
375    
376    
377  #if defined(STACK_USE_DHCP)  #if defined(STACK_USE_DHCP)

Legend:
Removed from v.95  
changed lines
  Added in v.96

  ViewVC Help
Powered by ViewVC 1.1.20