create mutexes before starting tasks
This commit is contained in:
+3
-4
@@ -293,6 +293,9 @@ void tasksStart()
|
||||
{
|
||||
RTOS_INIT();
|
||||
|
||||
RTOS_CREATE_MUTEX(audioMutex);
|
||||
RTOS_CREATE_MUTEX(mixerMutex);
|
||||
|
||||
#if defined(CLI)
|
||||
cliStart();
|
||||
#endif
|
||||
@@ -303,9 +306,5 @@ void tasksStart()
|
||||
#if !defined(SIMU)
|
||||
RTOS_CREATE_TASK(audioTaskId, audioTask, "audio", audioStack, AUDIO_STACK_SIZE, AUDIO_TASK_PRIO);
|
||||
#endif
|
||||
|
||||
RTOS_CREATE_MUTEX(audioMutex);
|
||||
RTOS_CREATE_MUTEX(mixerMutex);
|
||||
|
||||
RTOS_START();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ extern RTOS_TASK_HANDLE audioTaskId;
|
||||
extern RTOS_DEFINE_STACK(audioStack, AUDIO_STACK_SIZE);
|
||||
|
||||
extern RTOS_MUTEX_HANDLE mixerMutex;
|
||||
extern RTOS_FLAG_HANDLE openTxInitCompleteFlag;
|
||||
|
||||
void stackPaint();
|
||||
void tasksStart();
|
||||
|
||||
Reference in New Issue
Block a user