Dear Sir/Madam I configured my RTOS tick on 25us in order to read sensors fast. but in other hand i need to have for example 50 seconds delay in my program.So i use
void os_tmr_call(U16 ifo)
and
os_tmr_create(U16)
;U16 lenght is 65536 and as you know maximum delay is 65536 X 25us = 1.63 S if i will be able to use U32 in os_tmr_create problem will be solved but i can't. Also i don't want to stop program in a line.I mean i don't want to use for example
for(i=0;i<50;i++)os_dly_wait(40000);
and just want to use virtual timer or something like that.
Could you please tell me how can i increase delay time to 50 S or more base on 25us tick ?
If only one task is using the IO, then you don't need any mutex - a mutex is only needed to synchronize access between multiple threads.
And a mutex can not be used to synchronize between an ISR and a tread, since the OS can't make the thread release the mutex if the ISR wants access.
Ok Thank you for your last answer.this is very important note.