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 65... Line 65...
65
s32 UIP_TASK_Init(u32 mode)
65
s32 UIP_TASK_Init(u32 mode)
66
{
66
{
67
  if( mode > 0 )
67
  if( mode > 0 )
68
    return -1; // only mode 0 supported yet
68
    return -1; // only mode 0 supported yet
69
69
70
  xTaskCreate(UIP_TASK_Handler, (signed portCHAR *)"uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
70
  xTaskCreate(UIP_TASK_Handler, "uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
71
71
72
  services_running = 0;
72
  services_running = 0;
73
73
74
  return 0; // no error
74
  return 0; // no error
75
}
75
}