Subversion Repositories svn.mios32

Rev

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

Rev 1920 Rev 2425
Line 1... Line 1...
1
// $Id: app.c 1920 2014-01-08 19:29:35Z tk $
1
// $Id: app.c 2425 2016-11-03 00:44:22Z tk $
2
/*
2
/*
3
 * MIOS32 Tutorial #023: Exclusive access to LCD device (using a Mutex)
3
 * MIOS32 Tutorial #023: Exclusive access to LCD device (using a Mutex)
4
 * see README.txt for details
4
 * see README.txt for details
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 56... Line 56...
56
56
57
  // create Mutex for LCD access
57
  // create Mutex for LCD access
58
  xLCDSemaphore = xSemaphoreCreateRecursiveMutex();
58
  xLCDSemaphore = xSemaphoreCreateRecursiveMutex();
59
59
60
  // start tasks
60
  // start tasks
61
  xTaskCreate(TASK_LCD1, (signed portCHAR *)"LCD1", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_LCD1, NULL);
61
  xTaskCreate(TASK_LCD1, "LCD1", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_LCD1, NULL);
62
  xTaskCreate(TASK_LCD2, (signed portCHAR *)"LCD2", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_LCD2, NULL);
62
  xTaskCreate(TASK_LCD2, "LCD2", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_LCD2, NULL);
63
}
63
}
64
64
65
65
66
/////////////////////////////////////////////////////////////////////////////
66
/////////////////////////////////////////////////////////////////////////////
67
// This task is running endless in background
67
// This task is running endless in background