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 68... Line 68...
68
  if( mode > 0 )
68
  if( mode > 0 )
69
    return -1; // only mode 0 supported yet
69
    return -1; // only mode 0 supported yet
70
70
71
  xUIPSemaphore = xSemaphoreCreateMutex();
71
  xUIPSemaphore = xSemaphoreCreateMutex();
72
72
73
  xTaskCreate(UIP_TASK_Handler, (signed portCHAR *)"uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
73
  xTaskCreate(UIP_TASK_Handler, "uIP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_UIP, NULL);
74
74
75
  return 0; // no error
75
  return 0; // no error
76
}
76
}
77
77
78
78