Subversion Repositories svn.mios32

Rev

Rev 1118 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1118 Rev 2425
Line 1... Line 1...
1
// $Id: uip_task.c 1118 2010-10-24 13:54:51Z tk $
1
// $Id: uip_task.c 2425 2016-11-03 00:44:22Z tk $
2
/*
2
/*
3
 * uIP handler as FreeRTOS task
3
 * uIP handler as FreeRTOS task
4
 *
4
 *
5
 * Framework taken from $MIOS32_PATH/modules/uip/doc/example-mainloop-with-arp.c
5
 * Framework taken from $MIOS32_PATH/modules/uip/doc/example-mainloop-with-arp.c
6
 *
6
 *
Line 76... Line 76...
76
  if( mode > 0 )
76
  if( mode > 0 )
77
    return -1; // only mode 0 supported yet
77
    return -1; // only mode 0 supported yet
78
78
79
  xUIPSemaphore = xSemaphoreCreateRecursiveMutex();
79
  xUIPSemaphore = xSemaphoreCreateRecursiveMutex();
80
80
81
  xTaskCreate(UIP_TASK_Handler, (signed portCHAR *)"uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
81
  xTaskCreate(UIP_TASK_Handler, "uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
82
82
83
  services_running = 0;
83
  services_running = 0;
84
84
85
  return 0; // no error
85
  return 0; // no error
86
}
86
}