Hi,
There is a main task "Task1" created from main
Task1 has sub tasks
Hardware task : Hwtask ( created with Hwi_create() API)
Task threads : Below tasks created with Task_create() API
1) PDItask with priority 7
2) SPItask with priority 6
3) LEDtask with priority 5
1) When SPItask is running we need to block all other tasks ( Hwtask and PDItask ) from preemptive so that SPI read and write data goes well.
Can any one suggest a API to block other task?
2) One observation PDItask is not with Task_Sleep (), then how is SPItask getting time to schedule the execution?
3) When SPItask is not with Task_Sleep(), execution stays with in while (1) of SPItask, LEDtask is not scheduled why is this behaviour?
4) If SPItask is given with a Task_Sleep () of 1ms, then if LEDtask is between exection of a critical section where it has disabled all other task
what is the behaviour if Task_sleep has exceded 1ms of time in SPItask, Will the Disable all task work fine in this case? will not SPItask preempt ?
Regards,
Bindu