Subversion Repositories svn.mios32

Rev

Rev 817 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 817 Rev 1118
Line 88... Line 88...
88
// The uIP Task is executed each mS
88
// The uIP Task is executed each mS
89
/////////////////////////////////////////////////////////////////////////////
89
/////////////////////////////////////////////////////////////////////////////
90
static void UIP_TASK_Handler(void *pvParameters)
90
static void UIP_TASK_Handler(void *pvParameters)
91
{
91
{
92
  int i;
92
  int i;
93
  uip_ipaddr_t ipaddr;
-
 
94
  struct timer periodic_timer, arp_timer;
93
  struct timer periodic_timer, arp_timer;
95
94
96
  // Initialise the xLastExecutionTime variable on task entry
95
  // Initialise the xLastExecutionTime variable on task entry
97
  portTickType xLastExecutionTime = xTaskGetTickCount();
96
  portTickType xLastExecutionTime = xTaskGetTickCount();
98
97
Line 120... Line 119...
120
119
121
#ifndef DONT_USE_DHCP
120
#ifndef DONT_USE_DHCP
122
  dhcpc_init(uip_ethaddr.addr, sizeof(uip_ethaddr.addr));
121
  dhcpc_init(uip_ethaddr.addr, sizeof(uip_ethaddr.addr));
123
  MIOS32_MIDI_SendDebugMessage("[UIP_TASK] DHCP Client requests the IP settings...\n");
122
  MIOS32_MIDI_SendDebugMessage("[UIP_TASK] DHCP Client requests the IP settings...\n");
124
#else
123
#else
-
 
124
  uip_ipaddr_t ipaddr;
125
  // set my IP address
125
  // set my IP address
126
  uip_ipaddr(ipaddr,
126
  uip_ipaddr(ipaddr,
127
         ((MY_IP_ADDRESS)>>24) & 0xff,
127
         ((MY_IP_ADDRESS)>>24) & 0xff,
128
         ((MY_IP_ADDRESS)>>16) & 0xff,
128
         ((MY_IP_ADDRESS)>>16) & 0xff,
129
         ((MY_IP_ADDRESS)>> 8) & 0xff,
129
         ((MY_IP_ADDRESS)>> 8) & 0xff,