Subversion Repositories svn.mios32

Rev

Rev 1165 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1165 Rev 2425
Line 1... Line -...
1
// $Id: tasks.c 1165 2011-04-09 23:29:01Z tk $
-
 
-
 
1
// $Id: tasks.c 2425 2016-11-03 00:44:22Z tk $
2
/*
2
/*
3
 * FreeRTOS Tasks
3
 * FreeRTOS Tasks
4
 * only used by MIOS32 build, as a Cocoa based Task handling is used on MacOS
4
 * only used by MIOS32 build, as a Cocoa based Task handling is used on MacOS
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 103... Line 103...
103
  // disable MSD by default (has to be enabled in SID_UI_FILE menu)
103
  // disable MSD by default (has to be enabled in SID_UI_FILE menu)
104
  msd_state = MSD_DISABLED;
104
  msd_state = MSD_DISABLED;
105
#endif
105
#endif
106
106
107
  // start tasks
107
  // start tasks
108
  xTaskCreate(TASK_Period1mS,         (signed portCHAR *)"Period1mS",    configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
-
 
109
  xTaskCreate(TASK_Period1mS_LowPrio, (signed portCHAR *)"Period1mS_LP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS_LOW_PRIO, NULL);
-
 
110
  xTaskCreate(TASK_Period1S,          (signed portCHAR *)"Period1S",     configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1S, NULL);
-
 
-
 
108
  xTaskCreate(TASK_Period1mS,         "Period1mS",    configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
-
 
109
  xTaskCreate(TASK_Period1mS_LowPrio, "Period1mS_LP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS_LOW_PRIO, NULL);
-
 
110
  xTaskCreate(TASK_Period1S,          "Period1S",     configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1S, NULL);
111
#if USE_MSD
111
#if USE_MSD
112
  xTaskCreate(TASK_MSD,               (signed portCHAR *)"MSD",          configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_MSD, &xMSDHandle);
-
 
-
 
112
  xTaskCreate(TASK_MSD,               "MSD",          configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_MSD, &xMSDHandle);
113
#endif
113
#endif
114
114
115
  // create semaphores
115
  // create semaphores
116
  xSDCardSemaphore = xSemaphoreCreateRecursiveMutex();
116
  xSDCardSemaphore = xSemaphoreCreateRecursiveMutex();
117
  xMIDIINSemaphore = xSemaphoreCreateRecursiveMutex();
117
  xMIDIINSemaphore = xSemaphoreCreateRecursiveMutex();