Osed
Osed
Osed
#include <RTL.h>
#include <stdio.h> {
i++;
os_tsk_prio_self(2); }
tsk2 = os_tsk_create (task2, i=0;
1);
os_sem_send (semaphore1);
while (1) {
os_tsk_prio_self(4);
// os_dly_wait(3);
}
/* Wait 1 ticks for the free
semaphore */ }
i=0;
os_sys_init (task1);
os_sem_send (semaphore1);
}
}
}
1) Event_basics: 2) Prio_basics: 4) Round Robin with event:
#include <rtl.h> #include <rtl.h> #include <rtl.h>
{cnt1=0; cnt2=0; }