Subversion Repositories svn.mios32

Rev

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

Rev 1806 Rev 2425
Line 1... Line 1...
1
// $Id: tasks.c 1806 2013-06-16 19:17:37Z 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 89... Line 89...
89
  xLCDSemaphore = xSemaphoreCreateRecursiveMutex();
89
  xLCDSemaphore = xSemaphoreCreateRecursiveMutex();
90
  xJ16Semaphore = xSemaphoreCreateRecursiveMutex();
90
  xJ16Semaphore = xSemaphoreCreateRecursiveMutex();
91
  // TODO: here we could check for NULL and bring MBSEQ into halt state
91
  // TODO: here we could check for NULL and bring MBSEQ into halt state
92
92
93
  // start tasks
93
  // start tasks
94
  xTaskCreate(TASK_MIDI,              (signed portCHAR *)"MIDI",         configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_MIDI, NULL);
94
  xTaskCreate(TASK_MIDI,              "MIDI",         configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_MIDI, NULL);
95
  xTaskCreate(TASK_Period1mS,         (signed portCHAR *)"Period1mS",    configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
95
  xTaskCreate(TASK_Period1mS,         "Period1mS",    configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
96
  xTaskCreate(TASK_Period1mS_LowPrio, (signed portCHAR *)"Period1mS_LP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS_LOW_PRIO, NULL);
96
  xTaskCreate(TASK_Period1mS_LowPrio, "Period1mS_LP", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS_LOW_PRIO, NULL);
97
  xTaskCreate(TASK_Pattern,           (signed portCHAR *)"Pattern",      configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PATTERN, &xPatternHandle);
97
  xTaskCreate(TASK_Pattern,           "Pattern",      configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PATTERN, &xPatternHandle);
98
98
99
  // finally init the uIP task
99
  // finally init the uIP task
100
  UIP_TASK_Init(0);
100
  UIP_TASK_Init(0);
101
101
102
  return 0; // no error
102
  return 0; // no error