We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In my RTX kernel task management system the function os_dly_wait(); is not working properly .My need is to generate a delay in one task and then such over to another,that i have two task task1 and task2 . I use the above function .But its not working properly.I dont know its my fault or not.Anyone please help me as early as possible.
u32 task1_id; u32 task2_id; #define EVENT_ID (1) void task1() { print(); os_dly_wait(500); os_set_evt(EVENT_ID, task2_id); // this will cause task 2 to become READY to run. you may want to delay again. ...... } void task2() { os_evt_wait(EVENT_ID,0xFFFF,FALSE); // any code here will be after task1's os_set_evt } void master_task() { task1_id = os_tsk_create(task1,100); task2_id = os_tsk_create(task2,100); os_dly_wait(0xFFFF); // put this task to sleep } int main() { os_sys_init(master_task); }