Reputation: 3
I have three Threads Running in y code in main function I am declaring 3 Threads and suspend Two of them. My Interrupt Routine calls a function which after words resumes the one Task named "Swing". But While this task is running whenever interrupt occurs it does not run at all. And Other task is not running during this time.
{
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);
defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
osThreadDef(SwingTask, Swing, osPriorityNormal, 0, 128);
SwingTaskHandle = osThreadCreate(osThread(SwingTask), NULL);
osThreadDef(Task1, Task1, osPriorityNormal, 0, 100);
osThreadCreate(osThread(Task1), NULL);
vTaskSuspend(defaultTaskHandle);
vTaskSuspend(SwingTaskHandle);
vTaskStartScheduler();
}
Upvotes: 0
Views: 150