Mutex to protect the audio functions

This commit is contained in:
bsongis
2012-07-03 19:41:53 +00:00
parent 4b3fad5266
commit b78533f86c
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -53,6 +53,7 @@ OS_TCID audioTimer;
OS_FlagID audioFlag;
OS_MutexID sdMutex;
OS_MutexID audioMutex;
/*OS_TID btTask;
OS_STK btStack[BT_STACK_SIZE];
@@ -3122,6 +3123,7 @@ int main(void)
audioTaskId = CoCreateTask(audioTask, NULL, 7, &audioStack[AUDIO_STACK_SIZE-1], AUDIO_STACK_SIZE);
sdMutex = CoCreateMutex();
audioMutex = CoCreateMutex();
CoStartOS();
#else